-
Notifications
You must be signed in to change notification settings - Fork 339
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
Add new packs
input to init action
#591
Conversation
This input allows users to specify which packs to run. It works in unison with the packs block of the config file and it is similar to how `queries` works. They both use `+` in the same way. Note that the `#TODO` in the pr check is still around, but the CLI is available. I will remove the TODO in the next commit.
108ced1
to
6e577cf
Compare
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.
Nice! This mostly looks good, a few comments inline.
src/config-utils.ts
Outdated
if (packsInput.startsWith("+")) { | ||
packsInput = packsInput.substring(1).trim(); | ||
if (!packsInput) { | ||
throw new Error("Remove the '+' from the packs input."); |
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 could be a little more informative, e.g. A + was used in the packs input to specify that you wished to add some packs to your CodeQL analysis. However, no packs were specified. Please either remove the + or specify some packs.
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.
@aeisenberg Think you missed this comment? Unless you disagree, in which case no need to address it 🙂
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.
Right. Missed this. Thanks for pointing it out.
.github/workflows/pr-checks.yml
Outdated
- uses: ./../action/init | ||
with: | ||
config-file: ".github/codeql/codeql-config-packaging3.yml" | ||
packs: dsp-testing/[email protected] |
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.
I think you need a +
here? Otherwise this LGTM now.
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.
Doh!
257ff39
to
76e2e21
Compare
Build is failing because the version of the cli it is grabbing from the toolcache is not yet new enough to support all of the packaging commands. |
Also, update the options and inputs documentation.
76e2e21
to
4087f37
Compare
This input allows users to specify which packs to run. It works in
unison with the packs block of the config file and it is similar to
how
queries
works. They both use+
in the same way.Note that the
#TODO
in the pr check is still around, but the CLIis available. I will remove the TODO in the next commit.
Merge / deployment checklist