Skip to content

Commit

Permalink
feat: Add inputs for SBOM and provenance (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
staticaland authored Feb 23, 2024
1 parent 8e3cd09 commit a5a7fc9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/reusable-docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ on:
required: false
type: string

sbom:
description: "Generate SBOM attestation for the build (shorthand for --attest=type=sbom)"
required: false
type: boolean
default: false

provenance:
description: "Generate provenance attestation for the build (shorthand for --attest=type=provenance)"
required: false
type: boolean
default: false

tag_rules:
# https://github.com/marketplace/actions/docker-metadata-action#tags-input
# Priority affects tags order so image version will be set based on the higher one.
Expand Down Expand Up @@ -240,7 +252,8 @@ jobs:
context: ${{ inputs.context }}
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}
provenance: false
provenance: ${{ inputs.provenance }}
sbom: ${{ inputs.sbom }}
build-args: |
ECR_REPOSITORY_NAME=${{ inputs.ecr_repository_name }}
GHCR_IMAGE_NAME=${{ inputs.ghcr_image_name || github.repository }}
Expand Down

0 comments on commit a5a7fc9

Please sign in to comment.