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 documentation for the `tools` option in the various workflow files by NlightNFotis · Pull Request #2284 · github/codeql-action

Conversation

@NlightNFotis

@NlightNFotis NlightNFotis commented May 10, 2024

Copy link
Copy Markdown
Contributor

Description

Documents the tools: input and its options for the various workflow files.

Companion PR to #2281

Fixes #1327

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
@NlightNFotis
Add documentation for the tools option in the various workflow files
6182f33
@NlightNFotis
NlightNFotis requested a review from a team as a code owner May 10, 2024 15:59
henrymercer
henrymercer reviewed May 10, 2024
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.

Thanks! I made a suggestion to make it clearer the recommended case of not passing this input to let the CodeQL Action choose which tools to use.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread init/action.yml Resolved

Uh oh!

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

@NlightNFotis @henrymercer
Clarify wording
eb4969f
Co-authored-by: Henry Mercer <[email protected]>
aeisenberg
aeisenberg reviewed May 10, 2024
View reviewed changes
Comment thread .github/actions/check-codescanning-config/action.yml Outdated
required: true
description: |
The url of codeql to use.
The version of the CodeQL tools to use. This can be any of the following:

@aeisenberg aeisenberg May 10, 2024

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 is an action used internally for testing only. Maybe better to change this to:

Suggested change
The version of the CodeQL tools to use. This can be any of the following:
The version of CodeQL passed to the `tools` input of the init action.

Sorry, something went wrong.

Uh oh!

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

NlightNFotis reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread .github/actions/query-filter-test/action.yml Outdated
required: true
description: |
The url of codeql to use.
The version of the CodeQL tools to use. This can be any of the following:

@aeisenberg aeisenberg May 10, 2024

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.

Same comment as above.

Sorry, something went wrong.

Uh oh!

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

NlightNFotis reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread init/action.yml
- A special value `linked` which uses the version of the CodeQL tools
that the Action has been bundled with.
required: false
# If not specified the Action will check in several places until it finds the CodeQL tools.

@aeisenberg aeisenberg May 10, 2024

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 keeping this line and removing the # is useful. At some point, but not here, we should document exactly which places are checked.

Sorry, something went wrong.

Uh oh!

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

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

@henrymercer henrymercer May 13, 2024 •
edited
Loading

Uh oh!

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

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.

The "check in several places" comment feels more about implementation under the hood than what the input actually means, and in fact applies even if you do specify an input. For instance, if you specify a URL we will try to extract the CodeQL version from the URL and use the toolcache if we can find a matching version. Overall, I'd prefer to remove this in favour of saying we'll use the recommended version if you don't specify an input, but I don't feel that strongly about it.

Sorry, something went wrong.

Uh oh!

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

All reactions
@NlightNFotis
Improve wording on internal workflows and add clarification for tools…
4f59156
… input in the description.
@NlightNFotis
NlightNFotis requested review from aeisenberg and henrymercer May 13, 2024 09:46
henrymercer
henrymercer approved these changes May 13, 2024
View reviewed changes
Comment thread init/action.yml
- A special value `linked` which uses the version of the CodeQL tools
that the Action has been bundled with.
required: false
# If not specified the Action will check in several places until it finds the CodeQL tools.

@henrymercer henrymercer May 13, 2024 •
edited
Loading

Uh oh!

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

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.

The "check in several places" comment feels more about implementation under the hood than what the input actually means, and in fact applies even if you do specify an input. For instance, if you specify a URL we will try to extract the CodeQL version from the URL and use the toolcache if we can find a matching version. Overall, I'd prefer to remove this in favour of saying we'll use the recommended version if you don't specify an input, but I don't feel that strongly about it.

Sorry, something went wrong.

Uh oh!

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

All reactions
@NlightNFotis
NlightNFotis merged commit 08487db into main May 13, 2024
@NlightNFotis
NlightNFotis deleted the NlightNFotis/add_tools_help branch May 13, 2024 14:07
This was referenced May 20, 2024
Merge main into releases/v3 #2300
Merged
Merge releases/v3 into releases/v2 #2302
Merged
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
@aeisenberg aeisenberg Awaiting requested review from aeisenberg

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.

Clarify documentation for the tools field in the init action

Uh oh!

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

3 participants

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