GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ensure qlconfig file is created when config parsing in cli is on by aeisenberg · Pull Request #1527 · github/codeql-action

Conversation

@aeisenberg

@aeisenberg aeisenberg commented Feb 6, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Previously, with the config parsing in the cli feature flag turned on, the CLI was not able to download packs from other registries. This PR adds the codeql-action changes required for this. The CLI changes will be in a separate, internal PR.

This is a fix for a potential bug that has not yet been raised, so no changelog post is necessary.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Holsta0822 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@aeisenberg
aeisenberg requested a review from a team as a code owner February 6, 2023 21:28
@aeisenberg
aeisenberg force-pushed the aeisenberg/qlconfig-in-cli branch from 8a54dcb to c7ecff7 Compare February 6, 2023 21:30
@aeisenberg

aeisenberg commented Feb 6, 2023

Copy link
Copy Markdown
Contributor Author

I expect that init-with-registries.yml will fail since in this case the config.yml was not being used. It should pass if the CODEQL_PASS_CONFIG_TO_CLI is explicitly set to false. It will also pass after the corresponding CLI work is merged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg
aeisenberg force-pushed the aeisenberg/qlconfig-in-cli branch 2 times, most recently from b00e4e4 to 328773c Compare February 6, 2023 21:37
@aeisenberg
aeisenberg marked this pull request as draft February 6, 2023 21:37
@aeisenberg
aeisenberg removed the request for review from a team February 6, 2023 21:37
@aeisenberg
aeisenberg force-pushed the aeisenberg/qlconfig-in-cli branch 3 times, most recently from 75fa980 to 826edd9 Compare February 6, 2023 23:44
@aeisenberg

aeisenberg commented Feb 7, 2023

Copy link
Copy Markdown
Contributor Author

Note that even though the PR Check - Packaging: Download using registries jobs are passing, they are not actually testing what they should be. Because we are not using extra private PATs in this repository, we can't test on other registries. I will be creating an internal PR with an integration test.

This PR also depends on a change to the CLI where we allow the --qlconfig-file option to be passed to database init.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg
Ensure qlconfig file is created when config parsing in cli is on
bbe8d37
Previously, with the config parsing in the cli feature flag turned on,
the CLI was not able to download packs from other registries. This PR
adds the codeql-action changes required for this. The CLI changes will
be in a separate, internal PR.
@aeisenberg
aeisenberg force-pushed the aeisenberg/qlconfig-in-cli branch from 826edd9 to bbe8d37 Compare February 7, 2023 18:41
@aeisenberg
aeisenberg marked this pull request as ready for review February 7, 2023 20:11
@aeisenberg

aeisenberg commented Feb 7, 2023

Copy link
Copy Markdown
Contributor Author

This is ready for review, even though it is not complete until the associated change in the codeql cli is available.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg
aeisenberg requested a review from henrymercer February 8, 2023 16:30
@aeisenberg
Merge remote-tracking branch 'upstream/main' into aeisenberg/qlconfig…
e2f72f1
…-in-cli
henrymercer
henrymercer reviewed Feb 9, 2023
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks mostly good. Comments are mainly around maintainability and filling a few gaps in my knowledge.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

aeisenberg
aeisenberg commented Feb 9, 2023
View reviewed changes
Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/codeql.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/codeql.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/config-utils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/init.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg @henrymercer
Apply suggestions from code review
3c81243
Co-authored-by: Henry Mercer <[email protected]>
@aeisenberg
aeisenberg force-pushed the aeisenberg/qlconfig-in-cli branch from 999f341 to 3c81243 Compare February 9, 2023 20:26
@aeisenberg
aeisenberg requested a review from henrymercer February 9, 2023 20:26
@aeisenberg

aeisenberg commented Feb 9, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@henrymercer can you take another look? There is a minor semantic change. If a user explicitly sets a CODEQL_REGISTRIES_AUTH env var, then this will override the generated env var based on inputs.

I think this provides a nice back door so that in case there are issues with the action not generating or passing the qlconfig or CODEQL_REGISTRIES_AUTH, a workflow can do that explicitly.

henrymercer reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg
aeisenberg force-pushed the aeisenberg/qlconfig-in-cli branch 2 times, most recently from a5f7338 to 60afa75 Compare February 9, 2023 21:30
@aeisenberg
Add tests for generateRegistries with an existing CODEQL_REGISTRIES…
5492b7d
…_AUTH
@aeisenberg
aeisenberg force-pushed the aeisenberg/qlconfig-in-cli branch from 60afa75 to 5492b7d Compare February 9, 2023 21:37
henrymercer
henrymercer reviewed Feb 10, 2023
View reviewed changes
Comment thread src/config-utils.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

henrymercer
henrymercer previously approved these changes Feb 10, 2023
View reviewed changes
@aeisenberg

aeisenberg commented Feb 10, 2023

Copy link
Copy Markdown
Contributor Author

I'm going to hold off on merging this until the related PR on the CLI side is merged as well. The assumption here is that the feature will be enabled officially for v2.12.3, but we won't be certain until the CLI PR is merged.

henrymercer reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aeisenberg
aeisenberg commented Feb 17, 2023
View reviewed changes
Comment thread src/codeql.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg
Update src/codeql.ts
736263f
@aeisenberg
aeisenberg dismissed henrymercer’s stale review via 736263f February 17, 2023 21:22
@aeisenberg
Merge branch 'main' into aeisenberg/qlconfig-in-cli
8f19113
@aeisenberg

aeisenberg commented Feb 27, 2023

Copy link
Copy Markdown
Contributor Author

v2.12.3 is now available. I am picking this PR up again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg

aeisenberg commented Feb 27, 2023

Copy link
Copy Markdown
Contributor Author

@henrymercer, can you take another look? Nothing has changed since your last approval.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg
aeisenberg requested a review from henrymercer February 27, 2023 05:59
henrymercer
henrymercer previously approved these changes Feb 27, 2023
View reviewed changes
Comment thread src/codeql.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread lib/codeql.js Outdated
*/
exports.CODEQL_VERSION_SECURITY_EXPERIMENTAL_SUITE = "2.12.1";
/**
* Versions 2.12.3+ of the CodeQL CLI support the `--qlconfig` flag in calls to `database init`.

@henrymercer henrymercer Feb 27, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Versions 2.12.3+ of the CodeQL CLI support the `--qlconfig` flag in calls to `database init`.
* Versions 2.12.4+ of the CodeQL CLI support the `--qlconfig` flag in calls to `database init`.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aeisenberg
Address comments from PR
98d24e5
@aeisenberg
aeisenberg dismissed henrymercer’s stale review via 98d24e5 February 27, 2023 17:59
@aeisenberg
aeisenberg requested a review from henrymercer February 27, 2023 17:59
@aeisenberg

aeisenberg commented Feb 27, 2023

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Addressed your comments and need another approvel.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aeisenberg
aeisenberg enabled auto-merge February 27, 2023 18:00
henrymercer
henrymercer approved these changes Feb 27, 2023
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aeisenberg
aeisenberg merged commit a589d40 into main Feb 27, 2023
@aeisenberg
aeisenberg deleted the aeisenberg/qlconfig-in-cli branch February 27, 2023 18:26
@henrymercer henrymercer mentioned this pull request Mar 6, 2023
Update bundle to 2.12.4 #1561
Merged
3 tasks
@github-actions github-actions Bot mentioned this pull request Mar 10, 2023
Merge main into releases/v2 #1570
Merged
4 of 6 tasks
@aliscco aliscco mentioned this pull request Apr 28, 2023
[Snyk] Fix for 3 vulnerabilities aliscco/codeql-action#351
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@henrymercer henrymercer henrymercer approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@aeisenberg @henrymercer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.