Skip to content

Commit c46ee04

Browse files
authored
Merge pull request #84 from Staffbase/provenance3
2 parents 4930499 + 78a6ff6 commit c46ee04

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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 | `false` |
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: 'false'
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)