Repository navigation
ci: 收紧 release.yml 的 notify-samples 权限与表达式插值 - #802
Merged
Merged
Conversation
#801 引入的 notify-samples job 带来 3 条新的 zizmor 告警: - excessive-permissions ×2:原先 release.yml 只有 build 一个 job,顶层的 id-token / attestations 写权限没问题;加上第二个 job 后这些权限会平铺过去, 而 notify-samples 只需要一个跨仓库 PAT。下移到 build job 的 permissions。 - template-injection:client_payload 直接插 ${{ steps.version.outputs.version }}, 而 version 来自外部可控的 tag 名。改由 env 传递后在 shell 里引用 $VERSION。
Member
Author
|
唯一未通过的是 其余全绿:CodeQL、zizmor、两条 nativeTest、JDK 17/21/25/27 矩阵。 |
8 tasks done
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.
接 #801:notify-samples job 带来了 3 条新的 zizmor 告警。
excessive-permissions×2:release.yml 原本只有 build 一个 job,顶层id-token/attestations写权限无副作用;加了 notify-samples 后这些权限会平铺到两个 job,而它只用一个跨仓库 PAT。已下移到 build job 的permissions:。template-injection:client_payload里直接插${{ steps.version.outputs.version }},而 version 由外部 tag 名推导。改为经env:传递后在 shell 里用$VERSION/$TAG/$RUN_URL。本地 zizmor:
No findings to report. Good job!只改 workflow 配置,不触碰 Java 代码。