File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 1717 type : string
1818 default : " ${{ github.repository }}"
1919
20- signing :
21- description : " Sign the image"
22- type : string
23- default : " false"
24-
2520 publish :
2621 description : " Publish the image to the registry"
2722 type : string
5752 release : ${{ steps.set-version.outputs.release }}
5853 version : ${{ steps.set-version.outputs.version }}
5954
55+ permissions :
56+ id-token : write
57+ contents : read
58+
6059 steps :
6160 - name : " Checkout"
6261 uses : actions/checkout@v4
9291 uses : advanced-security/reusable-workflows/.github/workflows/container-security.yml@main
9392 needs : set-version
9493 secrets : inherit
94+ permissions :
95+ id-token : write
96+ contents : read
97+ packages : read # Read Container Registry
98+ security-events : write # Code Scanning
9599 with :
96100 version : ${{ needs.set-version.outputs.version }}
97101 container-file : ${{ inputs.container-file }}
@@ -103,9 +107,13 @@ jobs:
103107 needs : [ scan-image, set-version ]
104108 if : ${{ needs.set-version.outputs.release == 'true' }}
105109 secrets : inherit
110+ permissions :
111+ id-token : write
112+ contents : write # Upload SBOM to GitHub
113+ packages : write # Push to Container Registry
114+ attestations : write # Upload attestations
106115 with :
107116 version : ${{ needs.set-version.outputs.version }}
108117 container-file : ${{ inputs.container-file }}
109118 container-name : ${{ inputs.container-name }}
110119 sbom : ${{ inputs.sbom }}
111- signing : ${{ inputs.signing }}
You can’t perform that action at this time.
0 commit comments