Skip to content

Commit edc3866

Browse files
committed
feat(ci): add SBOM
1 parent 6221c4f commit edc3866

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish-images.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,24 @@ name: "Publish images"
22

33
on:
44
push:
5+
workflow_dispatch:
56

67
permissions:
78
packages: write
9+
actions: read
10+
contents: write
11+
security-events: write
812

913
jobs:
1014
publish-images:
1115
if: github.run_number > 1
1216
uses: NethServer/ns8-github-actions/.github/workflows/publish-branch.yml@v1
17+
module:
18+
needs: publish-images
19+
uses: NethServer/ns8-github-actions/.github/workflows/module-info.yml@v1
20+
trivy:
21+
needs: module
22+
if: ${{ needs.module.outputs.release == 'stable' || needs.module.outputs.release == 'latest' || github.event_name == 'workflow_dispatch' }}
23+
uses: NethServer/ns8-github-actions/.github/workflows/scan-with-trivy.yml@v1
24+
with:
25+
images: ${{ needs.module.outputs.images }}

0 commit comments

Comments
 (0)