Skip to content

fix: Grant permissions for SLSA provenance job - #1562

Merged
dervoeti merged 1 commit into
mainfrom
fix/slsa-provenance-permissions
Jul 3, 2026
Merged

fix: Grant permissions for SLSA provenance job#1562
dervoeti merged 1 commit into
mainfrom
fix/slsa-provenance-permissions

Conversation

@dervoeti

@dervoeti dervoeti commented Jul 3, 2026

Copy link
Copy Markdown
Member

Description

The SLSA provenance job added to reusable_build_image.yaml requests actions: read and packages: write. GitHub caps a nested reusable workflow's permissions at what the top-level caller grants, so every caller must grant these or the nested provenance job fails validation with "requesting 'actions: read, packages: write', but is only allowed 'actions: none, packages: none'".

Add both to all workflows that call reusable_build_image.yaml. packages: write is required by slsa-github-generator until slsa-framework/slsa-github-generator#1257 is resolved.

Definition of Done Checklist

Note

Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.

Please make sure all these things are done and tick the boxes

  • Changes are OpenShift compatible
  • All added packages (via microdnf or otherwise) have a comment on why they are added
  • Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
  • All packages should have (if available) signatures/hashes verified
  • Add an entry to the CHANGELOG.md file
  • Integration tests ran successfully
TIP: Running integration tests with a new product image

The image can be built and uploaded to the kind cluster with the following commands:

boil build <IMAGE> --image-version <RELEASE_VERSION> --strip-architecture --load
kind load docker-image <MANIFEST_URI> --name=<name-of-your-test-cluster>

See the output of boil to retrieve the image manifest URI for <MANIFEST_URI>.

@dervoeti dervoeti self-assigned this Jul 3, 2026
@dervoeti
dervoeti requested a review from NickLarsenNZ July 3, 2026 10:43

@NickLarsenNZ NickLarsenNZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dervoeti
dervoeti added this pull request to the merge queue Jul 3, 2026
Merged via the queue into main with commit 55cc699 Jul 3, 2026
3 checks passed
@dervoeti
dervoeti deleted the fix/slsa-provenance-permissions branch July 3, 2026 10:45
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.

2 participants