-
Notifications
You must be signed in to change notification settings - Fork 4.6k
GitHub Actions workflow hardening #69126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
32951b8
Add an Actionlint workflow.
johnbillion 908465e
Add Octoscan, Zizmor, and Poutine.
johnbillion a93c6c9
Replace inline expressions with environment variables.
johnbillion 8480d4e
Be explicit about credential use when checking out a repo.
johnbillion 26e53c3
Be strict about quoting environment variables.
johnbillion 45a258f
Update Zizmor.
johnbillion 571dc91
Update upload-sarif.
johnbillion 4d489d2
Disable the dangerous-write rule in Octoscan for now, to reduce the n…
johnbillion 5ddbdd3
Add some more quoting to prevent word splitting.
johnbillion 5ed7adf
These are false positives.
johnbillion d1426f7
o_O
johnbillion 5f09ce6
Disable permissions for all available scopes by default.
johnbillion 8450599
Add explicit permissions for all jobs.
johnbillion 354cd3d
Remove use of the npm cache during the build.
johnbillion e32c9b0
Not much we can do about local actions.
johnbillion d6f5a6d
Replace some more inline expressions with environment variables.
johnbillion 17c4dd3
Merge branch 'trunk' into harden-workflows
johnbillion 8977e1f
Remove another inline expression.
johnbillion 2ca9e32
Another round of updates to address shellcheck concerns.
johnbillion 2678d27
Don't redirect to the same file that's being read.
johnbillion 9b437c9
The `-ignore` flag is, ironically, being ignored. Let's see if the is…
johnbillion 02a3fbf
More adjustments to the actionlint config.
johnbillion 28655e8
Whoops.
johnbillion c1e6cbb
Update zizmor for one final check.
johnbillion 471fa67
Everything is green, so we'll remove Octoscan, Zizmor, and Poutine. U…
johnbillion a781612
Merge branch 'trunk' into harden-workflows
johnbillion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # This is the configuration file for actionlint, a static checker for GitHub Actions workflow files. | ||
| # See https://github.com/rhysd/actionlint. | ||
|
|
||
| # Path-specific configurations. | ||
| paths: | ||
| .github/workflows/**/*.{yml,yaml}: | ||
| ignore: | ||
| # [SC2129](https://www.shellcheck.net/wiki/SC2129) is ignored because it is a stylistic issue. | ||
| - 'shellcheck reported issue in this script: SC2129:.+' | ||
| .github/workflows/end2end-test.yml: | ||
| ignore: | ||
| # This file gets created in the step prior. | ||
| - 'file "build/index.js" does not exist.+' |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.