-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Limit workflow job permissions to bare minimum This allows to narrow down workflow permissions in GitHub settings See https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs and https://docs.github.com/en/actions/security-guides/automatic-token-authentication\#permissions-for-the-github_token Signed-off-by: Marco Franssen <[email protected]> * Add container signing using Sigstore keyless Signed-off-by: Marco Franssen <[email protected]> Signed-off-by: Marco Franssen <[email protected]> Co-authored-by: Marcos Yacob <[email protected]>
- Loading branch information
1 parent
4f5445c
commit f9977d1
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,19 @@ jobs: | |
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
packages: write | ||
|
||
env: | ||
COSIGN_EXPERIMENTAL: 1 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
with: | ||
cosign-release: v1.13.1 | ||
- name: Install regctl | ||
uses: regclient/actions/regctl-installer@main | ||
- name: Build images | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -570,11 +570,19 @@ jobs: | |
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
packages: write | ||
|
||
env: | ||
COSIGN_EXPERIMENTAL: 1 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
with: | ||
cosign-release: v1.13.1 | ||
- name: Download archived images | ||
uses: actions/download-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters