🔒 收紧 GitHub Actions 工作流权限并固定 Action - #2
Merged
Merged
Conversation
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.
背景
暂无
变更
contents: read,并将 checkout 配置为persist-credentials: false。actions/checkout与voidzero-dev/setup-vp固定到完整提交 SHA,并保留对应版本注释。publishjob;CI job 仍只获得contents: read。兼容性与迁移
不改变 SDK API、运行时支持或发布触发条件。发布 job 仍有创建发布所需的
contents: write与packages: write权限。验证
git diff --check:通过。