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

Add a permissions block for generated workflows by aeisenberg · Pull Request #902 · github/codeql-action · GitHub

Add a permissions block for generated workflows - #902

Merged
aeisenberg merged 2 commits into
mainfrom
aeisenberg/permissions
Feb 1, 2022
Merged

aeisenberg merged 2 commits into
mainfrom
aeisenberg/permissions

Conversation

aeisenberg commented Feb 1, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

Ensure that all workflows are able to write security events. Fixes a bug where CI jobs were failing during the upload status report request if the ref property of the report was not the same as the PR ref.

I changed the approach in this PR. Instead of adding a permissions block, I am changing how the TEST_MODE environment variable works. Now, when this variable is set, no status reports will be uploaded to code scanning.

The reasoning is that code scans from forks will never be allowed to have security-events: write permissions for resources other than the current PR. This is a conscious decision and meant to prevent third parties from maliciously uploading new code scans for refs they do not control.

See #889

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 force-pushed the aeisenberg/permissions branch from 0dd07df to 36419a7 Compare February 1, 2022 18:13
aeisenberg enabled auto-merge February 1, 2022 18:25
aeisenberg merged commit 57f34a1 into main Feb 1, 2022
aeisenberg deleted the aeisenberg/permissions branch February 1, 2022 18:54
github-actions Bot mentioned this pull request Feb 7, 2022
5 tasks
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