Skip to content

ci: pin release action to commit SHA and set read-only default permissions - #2516

Open
Yonghui-Lee wants to merge 1 commit into
fsspec:masterfrom
Yonghui-Lee:pin-release-action
Open

Yonghui-Lee wants to merge 1 commit into
fsspec:masterfrom
Yonghui-Lee:pin-release-action

Conversation

@Yonghui-Lee

Copy link
Copy Markdown
Contributor

Harden the release workflow permissions and third-party action reference when publishing new tags.

Changes

  • Add a top-level permissions: contents: read setting so jobs without explicit permissions default to read-only repository access instead of relying on repository defaults.
  • Restrict the ci and build jobs to the read-only default GITHUB_TOKEN scope during release tag runs.
  • Keep explicit job-level permissions scoped solely to contents: write on release and id-token: write on publish.
  • Pin softprops/action-gh-release in the release job to commit 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 (v2.6.2) instead of the mutable @v2 tag so a tag move cannot run unreviewed code with contents: write.

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.

1 participant