Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
description: 'Force multi-platform build (amd64+arm64) even for beta/rc tags'
type: boolean
default: false
docker_build_args:
description: 'Newline-separated Docker build arguments to pass to docker build (e.g., "APP_NAME=spi\nCOMPONENT_NAME=api"). Forwarded to docker/build-push-action build-args.'
type: string
required: false
default: ''
build_context_from_working_dir:
description: 'Use the component working_dir as Docker build context instead of build_context. Useful for independent modules (e.g., tools with their own go.mod).'
type: boolean
Expand Down Expand Up @@ -297,6 +302,7 @@
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: ${{ inputs.docker_build_args }}
sbom: generator=docker/scout-sbom-indexer:latest
provenance: mode=max
cache-from: type=gha
Expand Down Expand Up @@ -335,7 +341,7 @@

- name: Sign container images with cosign
if: inputs.enable_cosign_sign
uses: LerianStudio/github-actions-shared-workflows/src/security/cosign-sign@feat/cosign-sign

Check warning on line 344 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / Pinned Actions Check

Internal action not pinned to a version: uses: LerianStudio/github-actions-shared-workflows/src/security/cosign-sign@feat/cosign-sign
with:
image-refs: ${{ steps.cosign-refs.outputs.refs }}

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ on:
description: 'Enable Docker Hub Health Score compliance checks (non-root user, CVEs, licenses)'
type: boolean
default: true
docker_build_args:
description: 'Newline-separated Docker build arguments to pass to docker build (e.g., "APP_NAME=spi\nCOMPONENT_NAME=api"). Forwarded to docker/build-push-action build-args.'
type: string
required: false
default: ''
build_context_from_working_dir:
description: 'Use the component working_dir as Docker build context instead of repo root. Useful for independent modules (e.g., tools with their own go.mod).'
type: boolean
Expand Down Expand Up @@ -161,6 +166,7 @@ jobs:
load: true
push: false
tags: ${{ env.DOCKERHUB_ORG }}/${{ env.APP_NAME }}:pr-scan-${{ github.sha }}
build-args: ${{ inputs.docker_build_args }}
secrets: |
${{ secrets.MANAGE_TOKEN && format('github_token={0}', secrets.MANAGE_TOKEN) || '' }}
${{ secrets.NPMRC_TOKEN && format('npmrc=//npm.pkg.github.com/:_authToken={0}', secrets.NPMRC_TOKEN) || '' }}
Expand Down
Loading