Skip to content

Commit c015d1c

Browse files
Rebuild on a fixable CVE of any severity (#111)
* Rebuild on a fixable CVE of any severity * Say why the rebuild runs on Tuesdays now that secops scans daily * Drop the cron comment
1 parent 5d785a2 commit c015d1c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎.github/workflows/security-rebuild.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ name: Weekly Security Rebuild
44

55
on:
66
schedule:
7-
# ~22h ahead of the secops Wednesday 06:00 UTC scan, so anything cleared here is never filed.
87
- cron: "0 8 * * TUE"
98
workflow_dispatch:
109
inputs:
@@ -55,7 +54,6 @@ jobs:
5554
with:
5655
image-ref: ${{ env.PUBLISHED_IMAGE }}:${{ steps.version.outputs.tag }}
5756
scanners: vuln
58-
severity: HIGH,CRITICAL
5957
ignore-unfixed: true
6058
format: json
6159
output: published.json
@@ -64,7 +62,7 @@ jobs:
6462
id: before
6563
run: |
6664
jq -r '[.Results[]?.Vulnerabilities[]?.VulnerabilityID] | unique | .[]' published.json | sort -u > published_cves.txt
67-
echo "Fixable HIGH/CRITICAL CVEs on the published image:"; cat published_cves.txt || true
65+
echo "Fixable CVEs on the published image:"; cat published_cves.txt || true
6866
if [ -s published_cves.txt ]; then
6967
echo "proceed=true" >> "$GITHUB_OUTPUT"
7068
else
@@ -92,7 +90,6 @@ jobs:
9290
with:
9391
image-ref: localstack-docker-desktop:candidate
9492
scanners: vuln
95-
severity: HIGH,CRITICAL
9693
ignore-unfixed: true
9794
format: json
9895
output: candidate.json
@@ -182,7 +179,7 @@ jobs:
182179
echo "### Weekly security rebuild"
183180
echo
184181
echo "- Published image: \`${PUBLISHED_IMAGE}:${{ steps.version.outputs.tag }}\`"
185-
echo "- Fixable HIGH/CRITICAL on the published image: $(wc -l < published_cves.txt 2>/dev/null || echo 0)"
182+
echo "- Fixable CVEs on the published image: $(wc -l < published_cves.txt 2>/dev/null || echo 0)"
186183
echo "- Cleared by rebuild: $(wc -l < cleared.txt 2>/dev/null || echo 0)"
187184
echo "- Released: ${{ steps.bump.outputs.version || 'no (nothing cleared)' }}"
188185
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)