-
Notifications
You must be signed in to change notification settings - Fork 356
PR Checks: Test codeql-bundle.tar.gz
#1822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ec8eb0f
to
7420f88
Compare
7420f88
to
3636aac
Compare
codeql-bundle-all
codeql-bundle.tar.gz
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.
Looks good, just a couple of comments.
@@ -4,6 +4,10 @@ inputs: | |||
version: | |||
description: "The version of the CodeQL CLI to use. Can be 'latest', 'default', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'." | |||
required: true | |||
require-codeql-bundle-all: |
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.
Minor: How about use-all-platform-bundle
, to make it more clear what the "all" means?
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.
Done!
@@ -0,0 +1,56 @@ | |||
name: 'PR Check - CodeQL Bundle All' |
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.
Optional: We could consider autogenerating this by adding a top-level property to the workflow specifications and forwarding this to prepare-test
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.
Done 😄
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
version: nightly-latest |
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.
Perhaps matrix over default, latest, nightly-latest
to test the three most relevant bundles.
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.
Hm... using default
or latest
doesn't specify the bundle artifact to download in the prepare-test
action: https://github.com/github/codeql-action/blob/main/.github/actions/prepare-test/action.yml#L47-L50 🤔
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.
Oh, I see, since the Action determines the artifact name in these cases. In which case, I think testing the nightly is good enough.
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.
Very nice!
This PR check makes sure that we are testing the case where we use the non-platform specific
codeql-bundle.tar.gz
file for analysis. To do so, we've added ause-all-platform-bundle
input to theprepare-test
action that we set to true in the new PR check.Merge / deployment checklist