Commit 0080938
fix: gate release tags behind container scan, add retag workflow (#186)
* fix: gate release tags behind container scan, bump grype to 0.111.1
On tag pushes, build to an ephemeral :vX.Y.Z-rc tag first, scan it, then
retag to :vX.Y.Z / :X.Y / :X / :latest only when the scan passes. This
ensures :latest always points to a clean image.
Edge continues to track every main commit without scanning — it's a mutable
dev target and scan failures there are acceptable.
Also bumps GRYPE_VERSION from 0.111.0 (non-existent release) to 0.111.1,
applies the same PATH fix and tee-to-stdout report approach from the CVE jobs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: gate release tags behind container scan, bump grype to 0.111.1
Release flow for tag pushes:
- Build to ephemeral :vX.Y.Z-pending tag
- Scan by digest (fails build on high CVEs with a fix)
- On scan pass: retag to :vX.Y.Z / :X.Y / :X / :latest, delete -pending
:edge continues to track every main commit without scanning — mutable dev
target, scan failures acceptable there.
:latest now always points to a scan-clean release image.
Also adds retag.yml — workflow_dispatch to retag any digest to arbitrary
tags without rebuilding, for emergency promotions and re-pointing :latest.
Bumps GRYPE_VERSION 0.111.0 → 0.111.1. The root cause of the original
scan-action failure was a bug in that pinned commit of anchore/scan-action
which constructs the download URL as /releases/0.111.0 instead of
/releases/tag/v0.111.0, causing a 404. The fix bypasses the install script
entirely and downloads directly from the GitHub releases URL.
Applies PATH fix and tee-to-stdout report from the CVE jobs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c0d3da7 commit 0080938
2 files changed
Lines changed: 110 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 51 | | |
| 52 | + | |
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
| |||
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | | - | |
88 | | - | |
| 83 | + | |
89 | 84 | | |
90 | | - | |
| 85 | + | |
91 | 86 | | |
92 | 87 | | |
93 | 88 | | |
| |||
108 | 103 | | |
109 | 104 | | |
110 | 105 | | |
111 | | - | |
| 106 | + | |
112 | 107 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
122 | 111 | | |
123 | 112 | | |
124 | 113 | | |
125 | 114 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 115 | + | |
| 116 | + | |
130 | 117 | | |
131 | | - | |
| 118 | + | |
132 | 119 | | |
133 | 120 | | |
134 | 121 | | |
135 | 122 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 123 | + | |
139 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments