From 1e4232e95fd73da9bad8992e47fc79edb3297eae Mon Sep 17 00:00:00 2001 From: saisatishkarra Date: Fri, 26 Apr 2024 09:53:23 -0500 Subject: [PATCH] Fix workflow permissions for publishing security assets to releases --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1c0d18c5..229bfdd1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,8 +31,8 @@ jobs: check: runs-on: ubuntu-latest permissions: - contents: read packages: write + contents: write # publish sbom to GH releases/tag assets steps: - name: Checkout repository uses: actions/checkout@v3 @@ -46,6 +46,7 @@ jobs: dir: . upload-sbom-release-assets: true + # Build docker images build-images: runs-on: ubuntu-latest @@ -108,7 +109,7 @@ jobs: scan-images: runs-on: ubuntu-latest permissions: - contents: read + contents: write # For publishing assets to releases packages: write needs: [check, build-images] if: >