Commit 8ac6683
authored
feat: support ignore-vulnerabilities in rock oci publish workflow (#142)
## Description
This PR updates the reusable rock OCI publishing workflow
(`.github/workflows/_rock-oci-publish.yaml`) to support passing ignored
vulnerabilities when triggering builds/releases via the `oci-factory`
CLI.
### Changes
- **Workflow input**: Added optional `ignore-vulnerabilities` string
input (defaults to `""`) to accept a comma-separated list of
vulnerability/CVE IDs to ignore.
- **CLI argument formatting**: Formats and passes
`--ignored-vulnerabilities=<ids>` to `oci-factory upload` commands for
both stable and edge/candidate releases when specified. Whitespace is
stripped to prevent shell argument splitting issues.
- **Go version compatibility**: Updated `setup-go` version requirement
from `>=1.22.0` to `>=1.25.0` to ensure compatibility with
`github.com/canonical/oci-factory/tools/cli-client` which requires Go
1.25+.
Ref:
canonical/oci-factory#1182 (comment)1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | | - | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
59 | 69 | | |
60 | | - | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
65 | | - | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
0 commit comments