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 — Add new `packs` input to init action by aeisenberg · Pull Request #591 · github/codeql-action

Conversation

@aeisenberg

@aeisenberg aeisenberg commented Jun 23, 2021 •
edited
Loading

Uh oh!

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

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.

Sorry, something went wrong.

Uh oh!

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

All reactions
@aeisenberg
aeisenberg requested a review from a team as a code owner June 23, 2021 22:42
@aeisenberg
Add new packs input to init action
6e577cf
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
aeisenberg force-pushed the aeisenberg/pack-in-inputs branch from 108ced1 to 6e577cf Compare June 23, 2021 23:08
edoardopirovano
edoardopirovano reviewed Jun 24, 2021
View reviewed changes

@edoardopirovano edoardopirovano 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.

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

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/workflows/pr-checks.yml Resolved

Uh oh!

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

Comment thread .github/workflows/pr-checks.yml Resolved

Uh oh!

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

Comment thread .github/workflows/pr-checks.yml Resolved

Uh oh!

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

Comment thread init/action.yml 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 Outdated
if (packsInput.startsWith("+")) {
packsInput = packsInput.substring(1).trim();
if (!packsInput) {
throw new Error("Remove the '+' from the packs input.");

@edoardopirovano edoardopirovano Jun 24, 2021

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 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.

Sorry, something went wrong.

Uh oh!

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

All reactions

@edoardopirovano edoardopirovano Jun 24, 2021

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.

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

Sorry, something went wrong.

Uh oh!

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

All reactions

@aeisenberg aeisenberg Jun 24, 2021

Copy link
Copy Markdown
Contributor Author

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.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/runner.ts Resolved

Uh oh!

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

Comment thread .github/workflows/pr-checks.yml Resolved

Uh oh!

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

edoardopirovano
edoardopirovano approved these changes Jun 24, 2021
View reviewed changes
Comment thread .github/workflows/pr-checks.yml Outdated
- uses: ./../action/init
with:
config-file: ".github/codeql/codeql-config-packaging3.yml"
packs: dsp-testing/[email protected]

@edoardopirovano edoardopirovano Jun 24, 2021

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.

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

Sorry, something went wrong.

Uh oh!

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

All reactions

@aeisenberg aeisenberg Jun 24, 2021

Copy link
Copy Markdown
Contributor Author

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!

Sorry, something went wrong.

Uh oh!

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

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

aeisenberg commented Jun 25, 2021

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@aeisenberg
Add extra integration test for packaging
4087f37
Also, update the options and inputs documentation.
@aeisenberg
aeisenberg force-pushed the aeisenberg/pack-in-inputs branch from 76e2e21 to 4087f37 Compare June 25, 2021 17:08
@aeisenberg
Merge branch 'main' into aeisenberg/pack-in-inputs
67312df
@aeisenberg
aeisenberg merged commit 7726ece into main Jun 25, 2021
@aeisenberg
aeisenberg deleted the aeisenberg/pack-in-inputs branch June 25, 2021 17:52
@github-actions github-actions Bot mentioned this pull request Jun 28, 2021
Merge main into v1 #601
Merged
4 of 5 tasks
@aliscco aliscco mentioned this pull request Apr 27, 2023
[Snyk] Fix for 22 vulnerabilities aliscco/codeql-action#288
Open
@CharliesAngel1 CharliesAngel1 mentioned this pull request Nov 15, 2023
[Snyk] Upgrade @octokit/types from 12.0.0 to 12.1.0 CharliesAngel1/codeql-action#3
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@edoardopirovano edoardopirovano edoardopirovano approved these changes
Reviewers whose approvals may not affect merge requirements

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 @edoardopirovano
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.