-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Improve security of our GitHub Actions #18413
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
16 commits
Select commit
Hold shift + click to select a range
81e188c
Improve security of our GitHub Actions
sobolevn 234cd37
Improve security of our GitHub Actions
sobolevn ef0d211
Fix CI
sobolevn 2b5f024
Fix CI
sobolevn 0d59344
Fix CI
sobolevn a809119
Fix CI
sobolevn e9ead65
Fix CI
sobolevn 46d0544
Fix CI
sobolevn 2234fd7
Fix CI
sobolevn 695743d
Address review
sobolevn 985513f
Fix CI
sobolevn 04dde47
Address review
sobolevn 45cdb40
More pre-commit checks based on jsonschema
sobolevn cfad948
Revert mypy_primer_comment.yml changes
sobolevn d44ea68
Adress review
sobolevn 1e9e509
Fix CI
sobolevn 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
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
sobolevn marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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 |
---|---|---|
|
@@ -11,23 +11,39 @@ repos: | |
- id: black | ||
exclude: '^(test-data/)' | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.8.4 | ||
rev: v0.8.6 | ||
hooks: | ||
- id: ruff | ||
args: [--exit-non-zero-on-fix] | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.30.0 | ||
rev: 0.31.0 | ||
hooks: | ||
- id: check-dependabot | ||
- id: check-github-workflows | ||
- id: check-github-actions | ||
- id: check-readthedocs | ||
- repo: https://github.com/rhysd/actionlint | ||
rev: v1.7.4 | ||
rev: v1.7.6 | ||
hooks: | ||
- id: actionlint | ||
args: [ | ||
-ignore=property "debug_build" is not defined, | ||
-ignore=property "allow_failure" is not defined, | ||
-ignore=SC2(046|086), | ||
] | ||
additional_dependencies: | ||
# actionlint has a shellcheck integration which extracts shell scripts in `run:` steps from GitHub Actions | ||
# and checks these with shellcheck. This is arguably its most useful feature, | ||
# but the integration only works if shellcheck is installed | ||
- "github.com/wasilibs/go-shellcheck/cmd/[email protected]" | ||
- repo: https://github.com/woodruffw/zizmor-pre-commit | ||
rev: v1.0.1 | ||
hooks: | ||
- id: zizmor | ||
# Should be the last one: | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes | ||
|
||
ci: | ||
autoupdate_schedule: quarterly |
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.
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.