Skip to content

Commit 31391b8

Browse files
committed
feat(ci): add malware scan for release binaries in on-tag workflow
Scan the dist/ directory after GoReleaser builds binaries, before the release is published. Results uploaded to GitHub Security tab.
1 parent f0f372f commit 31391b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/on-tag.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ jobs:
7272
outputs:
7373
release_outcome: ${{ steps.release.outputs.release_outcome }}
7474
permissions:
75+
actions: read
7576
contents: write
7677
packages: write
7778
id-token: write
7879
attestations: write
80+
security-events: write
7981
steps:
8082
- name: Checkout Code
8183
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -99,6 +101,13 @@ jobs:
99101
with:
100102
ko_version: ${{ steps.versions.outputs.ko }}
101103

104+
- name: Malware Scan Release Binaries
105+
if: steps.release.outcome == 'success'
106+
uses: ./.github/actions/malware-scan
107+
with:
108+
scan_path: dist/
109+
category: 'clamav-release-binaries'
110+
102111
# =============================================================================
103112
# Docker Jobs: Native per-arch validator builds (parallel with GoReleaser)
104113
# =============================================================================

0 commit comments

Comments
 (0)