chore(ci): fix lint findings in build-docker#15145
Merged
Conversation
Signed-off-by: William Woodruff <[email protected]>
woodruffw
commented
Aug 7, 2025
| # And the workflow itself | ||
| - .github/workflows/build-docker.yml | ||
|
|
||
| permissions: {} |
Member
Author
There was a problem hiding this comment.
This drops workflow-wide permissions; I confirmed that each of the jobs below that uses the GITHUB_TOKEN has its own permissions explicitly set.
zanieb
approved these changes
Aug 7, 2025
zanieb
added a commit
that referenced
this pull request
Aug 8, 2025
zanieb
pushed a commit
that referenced
this pull request
Aug 12, 2025
## Summary This re-creates #15145, with fixes following the revert in #15174. The overall approach is the same, except that I've added an explicit permissions block to `docker-annotate-base` that should cover the needed permissions in that job. (One confusion is around how that wasn't failing before -- FWICT it was receiving the default `GITHUB_TOKEN`, which doesn't include `id-token: write` or `packages: write`. So it _should_ have been failing even before I explicitly did `permissions: {}`...) Edit: Oh, I see why -- the actual release process does a `workflow_call`, so this inherits its `GITHUB_TOKEN` from `release.yml:custom-build-docker`, which in turn has the right permissions granted to it. ## Test Plan See what happens in CI. Plus maybe we could do a release dry-run? Signed-off-by: William Woodruff <[email protected]>
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
Addresses zizmor findings in
build-docker.yml.Key changes: primarily removing template expansions and restricting some permissions.
Test Plan
Let the CI run.