FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add new `packs` input to init action by aeisenberg · Pull Request #591 · github/codeql-action · GitHub

Add new packs input to init action - #591

Merged
aeisenberg merged 3 commits into
mainfrom
aeisenberg/pack-in-inputs
Jun 25, 2021
Merged

aeisenberg merged 3 commits into
mainfrom
aeisenberg/pack-in-inputs

Conversation

aeisenberg commented Jun 23, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

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.

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.

aeisenberg requested a review from a team as a code owner June 23, 2021 22:42
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.
aeisenberg force-pushed the aeisenberg/pack-in-inputs branch from 108ced1 to 6e577cf Compare June 23, 2021 23:08

edoardopirovano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice! This mostly looks good, a few comments inline.

Comment thread init/action.yml Outdated
Comment thread src/config-utils.test.ts
Comment thread src/config-utils.ts Outdated
Comment thread src/config-utils.ts Outdated
Comment thread src/config-utils.ts Outdated
if (packsInput.startsWith("+")) {
packsInput = packsInput.substring(1).trim();
if (!packsInput) {
throw new Error("Remove the '+' from the packs input.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@aeisenberg Think you missed this comment? Unless you disagree, in which case no need to address it 🙂

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Right. Missed this. Thanks for pointing it out.

Comment thread src/runner.ts Outdated
Comment thread .github/workflows/pr-checks.yml Outdated
- uses: ./../action/init
with:
config-file: ".github/codeql/codeql-config-packaging3.yml"
packs: dsp-testing/codeql-pack1@0.0.4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think you need a + here? Otherwise this LGTM now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Doh!

aeisenberg force-pushed the aeisenberg/pack-in-inputs branch 2 times, most recently from 257ff39 to 76e2e21 Compare June 25, 2021 16:36

Copy link
Copy Markdown
Contributor Author

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.
aeisenberg force-pushed the aeisenberg/pack-in-inputs branch from 76e2e21 to 4087f37 Compare June 25, 2021 17:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL