From bf3a272732030c838832a716171e13059e1424f0 Mon Sep 17 00:00:00 2001 From: Eric Stengard Date: Mon, 29 Jan 2024 22:11:17 +0100 Subject: [PATCH] Move permissions to top level job definition (#107) It seems that we in the previous commit missed that permissions need to be set either on all jobs or globally if all jobs should have the same ones. This led to faulty/no permissions when trying to build and push the goer image. Change-Id: I3acbed8b05c9951c2a1658fd2cdf3a979b8fc20a Co-authored-by: Eric Stengard --- .github/workflows/build-test-push.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test-push.yml b/.github/workflows/build-test-push.yml index 9cd3f64..daa5a3b 100644 --- a/.github/workflows/build-test-push.yml +++ b/.github/workflows/build-test-push.yml @@ -13,13 +13,14 @@ env: IMAGE_NAME: ${{ github.repository }} jobs: + + permissions: + contents: read + packages: write + run-tests: runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - uses: actions/checkout@v4 with: