Repository navigation
ci: pin third-party actions to SHAs, scope GITHUB_TOKEN - #20
Merged
Merged
Conversation
…un scripts
- Third-party actions pinned to a full commit SHA (tag in a trailing comment): a moved tag would run new code with this repo's secrets.
- Workflows without a top-level permissions block now declare the narrowest scopes they use; the org default grants read on every scope.
- workflow_dispatch / workflow_call inputs reach run: scripts through env:, not inline ${{ }}, which is pasted into the script source before bash parses it.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
[Medium impact] The PR appears safe to merge. Reviews (1) · Last reviewed commit: "ci: pin third-party actions, scope GITHU..." · Reviewed by Greptile |
1 task
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
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.
Summary
Part of a sageox/* sweep that hardens GitHub Actions workflows.
golangci/golangci-lint-action@v9is now pinned to the v9.3.0 commit SHA, which other sageox repos already use, andsoftprops/action-gh-release@v2to the v2.6.2 SHA. A moved tag would otherwise run new code with this repo's secrets.ci.ymldeclarespermissions: contents: read. The org default grants read on every scope.Validation: YAML parses and actionlint is clean. CI on this PR runs
ci.yml.Link to Devin session: https://app.devin.ai/sessions/b44528baa21f40ee895142c6725a2dbf
Open in Devin Desktop: https://app.devin.ai/desktop/session/b44528baa21f40ee895142c6725a2dbf?variant=devin
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.🟢 Devin Review found nothing to fix · View findings
Summary by CodeRabbit