From 55c6f5db4b0a59d19b18fb87a0dd93e16860dd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Sun, 15 Sep 2024 16:33:50 +0200 Subject: [PATCH] Fix permissions for creating attestations https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds#generating-build-provenance-for-container-images --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 282945b..5653aca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,12 @@ env: LATEST_ZSH: "5.9" LATEST_OMZ: "master" # TODO: we need to change master with main when migrating the branch +permissions: + id-token: write + contents: read + attestations: write + packages: write + jobs: get-omz-versions: name: Get Oh My Zsh versions