Skip to content

Commit b834d5c

Browse files
committed
Revert "Set provenance as always false"
This reverts commit 7409951.
1 parent 4930499 commit b834d5c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
| `docker-build-secrets` | List of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken) | |
117117
| `docker-build-secret-files` | List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt) | |
118118
| `docker-build-target` | Sets the target stage to build like: "runtime" | |
119+
| `docker-build-provenance` | Generate [provenance](https://docs.docker.com/build/attestations/slsa-provenance/) attestation for the build | `mode=min,inline-only=true` |
119120
| `gitops-organization` | GitHub Organization for GitOps | `Staffbase` |
120121
| `gitops-repository` | GitHub Repository for GitOps | `mops` |
121122
| `gitops-user` | GitHub User for GitOps | `Staffbot` |

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ inputs:
3232
docker-build-target:
3333
description: "Sets the target stage to build"
3434
required: false
35+
docker-build-provenance:
36+
description: "Generate provenance attestation for the build"
37+
required: false
38+
default: 'mode=min,inline-only=true'
3539
gitops-organization:
3640
description: 'GitHub Organization for GitOps'
3741
required: true
@@ -140,7 +144,7 @@ runs:
140144
platforms: linux/amd64
141145
cache-from: type=gha
142146
cache-to: type=gha,mode=max
143-
provenance: false
147+
provenance: ${{ inputs.docker-build-provenance }}
144148

145149
- name: Checkout GitOps Repository
146150
if: inputs.gitops-token != ''

0 commit comments

Comments
 (0)