File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 7979
8080 - name : build and push ${{ steps.parse-tagname.outputs.service }} image
8181 uses : docker/build-push-action@v6
82+ id : docker
8283 with :
8384 context : ./${{ steps.parse-tagname.outputs.service }}/
8485 push : true
8586 tags : ${{ steps.meta.outputs.tags }}
8687 labels : |
8788 ${{ steps.meta.outputs.labels }}
89+
90+ - name : sign ${{ steps.parse-tagname.outputs.service }} image and attach SBOM attestation
91+ uses : adfinis/container-scanning-action@v0.2.12
92+ with :
93+ image-ref : ghcr.io/${{ steps.repo.outputs.lower }}/${{ steps.parse-tagname.outputs.service }}
94+ token : ${{ secrets.GITHUB_TOKEN }}
95+ digest : ${{ steps.docker.outputs.digest }}
96+ attest : true
Original file line number Diff line number Diff line change 1+ ---
2+ name : Schedule
3+
4+ on :
5+ schedule :
6+ - cron : 4 4 * * *
7+ workflow_dispatch :
8+
9+ jobs :
10+ scan :
11+ strategy :
12+ matrix :
13+ service : [api, caluma, ember]
14+
15+ name : scan ${{ matrix.image }} image
16+ runs-on : ubuntu-latest
17+ permissions :
18+ actions : none
19+ checks : none
20+ contents : none
21+ deployments : none
22+ issues : none
23+ packages : write
24+ pull-requests : none
25+ repository-projects : none
26+ security-events : write
27+ statuses : none
28+ # needed for `cosign attest`
29+ id-token : write
30+ steps :
31+ - id : repo
32+ run : |
33+ echo "lower=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
34+ - uses : adfinis/container-scanning-action@v0.2.12
35+ with :
36+ image-ref : ghcr.io/${{ steps.repo.outputs.lower }}/${{ matrix.service }}
37+ attest : true
38+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments