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 17
17
type : string
18
18
default : " ${{ github.repository }}"
19
19
20
- signing :
21
- description : " Sign the image"
22
- type : string
23
- default : " false"
24
-
25
20
publish :
26
21
description : " Publish the image to the registry"
27
22
type : string
57
52
release : ${{ steps.set-version.outputs.release }}
58
53
version : ${{ steps.set-version.outputs.version }}
59
54
55
+ permissions :
56
+ id-token : write
57
+ contents : read
58
+
60
59
steps :
61
60
- name : " Checkout"
62
61
uses : actions/checkout@v4
92
91
uses : advanced-security/reusable-workflows/.github/workflows/container-security.yml@main
93
92
needs : set-version
94
93
secrets : inherit
94
+ permissions :
95
+ id-token : write
96
+ contents : read
97
+ packages : read # Read Container Registry
98
+ security-events : write # Code Scanning
95
99
with :
96
100
version : ${{ needs.set-version.outputs.version }}
97
101
container-file : ${{ inputs.container-file }}
@@ -103,9 +107,13 @@ jobs:
103
107
needs : [ scan-image, set-version ]
104
108
if : ${{ needs.set-version.outputs.release == 'true' }}
105
109
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
106
115
with :
107
116
version : ${{ needs.set-version.outputs.version }}
108
117
container-file : ${{ inputs.container-file }}
109
118
container-name : ${{ inputs.container-name }}
110
119
sbom : ${{ inputs.sbom }}
111
- signing : ${{ inputs.signing }}
You can’t perform that action at this time.
0 commit comments