Skip to content

Commit 25b151f

Browse files
authored
Merge pull request #47 from advanced-security/GeekMasher-patch-1
Container Updates
2 parents 265c354 + 5c5f1bd commit 25b151f

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/container.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ on:
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
@@ -57,6 +52,10 @@ jobs:
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
@@ -92,6 +91,11 @@ jobs:
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 }}

0 commit comments

Comments
 (0)