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 — Document token input by jsoref · Pull Request #2110 · github/codeql-action

Conversation

@jsoref

@jsoref jsoref commented Feb 1, 2024 •
edited by angelapwen
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

I can't validate this, at the moment my jobs are stuck waiting for runners for macOS. I'm assuming that's because of the PRs I've been working on for github/codeql. I filed https://support.github.com/ticket/personal/0/2568638.

Goals:

  • remove some trailing whitespace
  • resolve Workflows are missing permissions requests codeql#15462 (comment) by converting sendStatusReport into a function that always returns true and uses core.warning instead of core.error
  • add an optional secrets.CODEQL_TOKEN to allow workflows in forks of this repository to try to work around github limits which result in failures due to limits (presumably on the default github-actions application) -- I can't tell if this works (see preamble)
  • add input.token.description to action.yml files to explain the purpose of the token in each case (more or less -- I'm not remotely certain about any of these)
  • hopefully I've correctly adjusted the pr-check & workflow things -- this sync stuff is a PITA to deal with -- it'd be nice if there was autogenerated output to update pr-check, but afaict there isn't

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.

SPodjasek reacted with eyes emoji
All reactions
  • 👀 1 reaction
@jsoref
jsoref requested a review from a team as a code owner February 1, 2024 01:14
@jsoref
jsoref force-pushed the tokens branch from 0b448db to 865e471 Compare February 1, 2024 01:14
@jsoref jsoref mentioned this pull request Feb 1, 2024
Workflows are missing permissions requests github/codeql#15462
Closed
@jsoref
jsoref force-pushed the tokens branch from 865e471 to 9447d66 Compare February 1, 2024 04:00
@angelapwen

angelapwen commented Feb 1, 2024

Copy link
Copy Markdown
Contributor

Thank you (again!) for the contribution ✨ as this is a somewhat larger change, we're going to take a bit of time to review — but rest assured that it's on our radar and to-do lists.

jsoref reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@aeisenberg aeisenberg mentioned this pull request Feb 6, 2024
codeql/upload-sarif@v3 action failed: Resource not accessible by integration - missing actions: read #2117
Open
angelapwen
angelapwen suggested changes Feb 7, 2024
View reviewed changes

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

Thank you for your contribution 💖 and your patience as we reviewed the PR! I wrote in some suggestions and specific code-related comments, but here are some other higher-level comments:

  • Could we drop the node_modules changes here, as they seem to be unrelated to the changes? We'd also like to make sure we Squash merge rather than Merge commit when the PR is in so that the change isn't in the commit history of main.
  • We'd also like to separate out the last change (adding ${{ secrets.CODEQL_TOKEN }} to all workflows owned by us, to keep the PR simpler. We may look into a better way of auto-generating this line for steps using actions that we own.
  • If you could rename the PR title to be more descriptive of the changes, that would be great!

Let us know if we can clarify further!! Thanks again 😸

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/status-report.ts Outdated
* This API it calls is private and it is not critical that it succeed:
* https://github.com/github/codeql/issues/15462#issuecomment-1919186317
*
* Returns true.

@angelapwen angelapwen Feb 7, 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.

Let's have this function not return anything then as I think there's limited value in always returning true. It looks like we're not doing much with the return value in any case.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread autobuild/action.yml Resolved

Uh oh!

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

Comment thread analyze/action.yml Resolved

Uh oh!

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

Comment thread src/status-report.ts Outdated
'Workflows triggered by Dependabot on the "push" event run with read-only access. ' +
"Uploading Code Scanning results requires write access. " +
'To use Code Scanning with Dependabot, please ensure you are using the "pull_request" event for this workflow and avoid triggering on the "push" event for Dependabot branches. ' +
"See https://docs.github.com/en/code-security/secure-coding/configuring-code-scanning#scanning-on-push for more information on how to configure these events.",
);
} else {
core.setFailed(e.message || GENERIC_403_MSG);
core.warning(e.message || GENERIC_403_MSG);

@angelapwen angelapwen Feb 7, 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.

Because we're no longer failing the entire workflow at this stage, we'd like to provide a better error when we upload SARIF if that API call returns 403/404. So perhaps we can simply do core.warning(e.message) in this file (and below, in the 404 case, and move the GENERIC_403_MSG and GENERIC_404_MSG to catch these response codes after this call:

codeql-action/src/upload-lib.ts

Line 110 in cf7e9f2

const response = await client.request(
?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread resolve-environment/action.yml Resolved

Uh oh!

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

Comment thread upload-sarif/action.yml Resolved

Uh oh!

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

@jsoref jsoref mentioned this pull request Feb 7, 2024
Declare permissions github/codeql#15493
Merged
@jsoref
Document action.inputs.token
2b78ba5
@jsoref
jsoref force-pushed the tokens branch from 9447d66 to 2b78ba5 Compare February 8, 2024 03:06
@jsoref jsoref changed the title Adjust Tokens Document token input Feb 8, 2024
@jsoref
jsoref requested a review from angelapwen February 8, 2024 03:08
This was referenced Feb 8, 2024
Treat status reports as non-critical #2121
Merged
Remove stray trailing spaces #2122
Merged
@angelapwen

angelapwen commented Feb 8, 2024

Copy link
Copy Markdown
Contributor

Thank you for splitting these up ✨

All reactions

Sorry, something went wrong.

Uh oh!

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

angelapwen
angelapwen approved these changes Feb 8, 2024
View reviewed changes
@angelapwen
angelapwen enabled auto-merge (squash) February 8, 2024 09:36
@angelapwen
angelapwen merged commit 9e39a05 into github:main Feb 8, 2024
@jsoref
jsoref deleted the tokens branch February 8, 2024 13:20
@github-actions github-actions Bot mentioned this pull request Feb 13, 2024
Merge main into releases/v3 #2131
Merged
7 of 8 tasks
@henrymercer henrymercer mentioned this pull request Feb 13, 2024
Merge releases/v3 into releases/v2 #2133
Merged
8 of 13 tasks
@jsoref jsoref mentioned this pull request Feb 13, 2024
Assigning PRs to merger doesn't work when they're auto-merged #2137
Open
@coderabbitai coderabbitai Bot mentioned this pull request Sep 12, 2026
fix(security): upgrade crossbeam-epoch from 0.9.18 to 0.9.20 hyperpolymath/filesoup#95
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@angelapwen angelapwen angelapwen 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.

Workflows are missing permissions requests

Uh oh!

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

2 participants

@jsoref @angelapwen
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.