From 89aa4b5ad2a4ccac129b3c0af94f477116a6ce6f Mon Sep 17 00:00:00 2001 From: Guy Owen Date: Tue, 3 Sep 2024 15:27:20 +1000 Subject: [PATCH] [291] Added summary as input to workflow. --- .github/workflows/vulnerability-scan.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/vulnerability-scan.yml b/.github/workflows/vulnerability-scan.yml index 9830475e..c0cd6614 100644 --- a/.github/workflows/vulnerability-scan.yml +++ b/.github/workflows/vulnerability-scan.yml @@ -4,6 +4,11 @@ env: REGISTRY: ghcr.io on: workflow_dispatch: + inputs: + summary: + description: 'Summary of the scheduled scan.' + required: false + default: 'Trivy CVE scan of published images for ${{ github.ref_name}}' jobs: setup-matrix: runs-on: ubuntu-latest @@ -32,6 +37,8 @@ jobs: strategy: matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }} steps: + - name: Set summary + run: echo "summary=${{ github.event.inputs.summary }}" >> $GITHUB_STEP_SUMMARY - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.ref }}