Skip to content

Commit f8f7e99

Browse files
authored
feat(security): add docker_build_args input to pr-security-scan workflow (#193)
1 parent f42d549 commit f8f7e99

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/pr-security-scan.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ on:
6767
description: 'Enable Docker Hub Health Score compliance checks (non-root user, CVEs, licenses)'
6868
type: boolean
6969
default: true
70+
docker_build_args:
71+
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.'
72+
type: string
73+
required: false
74+
default: ''
7075
build_context_from_working_dir:
7176
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).'
7277
type: boolean
@@ -161,6 +166,7 @@ jobs:
161166
load: true
162167
push: false
163168
tags: ${{ env.DOCKERHUB_ORG }}/${{ env.APP_NAME }}:pr-scan-${{ github.sha }}
169+
build-args: ${{ inputs.docker_build_args }}
164170
secrets: |
165171
${{ secrets.MANAGE_TOKEN && format('github_token={0}', secrets.MANAGE_TOKEN) || '' }}
166172
${{ secrets.NPMRC_TOKEN && format('npmrc=//npm.pkg.github.com/:_authToken={0}', secrets.NPMRC_TOKEN) || '' }}

0 commit comments

Comments
 (0)