From 9333f6592984b69371aa3eeeeca37f719de53a41 Mon Sep 17 00:00:00 2001 From: Dipika Sikka Date: Wed, 8 May 2024 18:22:43 +0000 Subject: [PATCH] fix container permissions --- .github/workflows/build-container.yml | 3 +++ .github/workflows/build-wheel-and-container.yml | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 1aa8138ba6e..f2d7149b9ac 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -17,6 +17,9 @@ on: jobs: build-container: runs-on: ${{ inputs.build-label }} + permissions: + contents: read + packages: write steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/.github/workflows/build-wheel-and-container.yml b/.github/workflows/build-wheel-and-container.yml index 511c7df25b5..c4f739a6a5b 100644 --- a/.github/workflows/build-wheel-and-container.yml +++ b/.github/workflows/build-wheel-and-container.yml @@ -39,8 +39,8 @@ jobs: - name: Set variables for workflows id: set-outputs run: | - echo "dev=$DEV" >> $GITHUB_OUTPUT - echo "release=$RELEASE" >> $GITHUB_OUTPUT + echo "dev=false" >> $GITHUB_OUTPUT + echo "release=false" >> $GITHUB_OUTPUT build-wheel-and-push: needs: set-outputs @@ -55,6 +55,7 @@ jobs: python: '3.10' secrets: inherit + """ test-wheel-and-publish: needs: [set-outputs, build-wheel-and-push] uses: ./.github/workflows/test-wheel-and-publish.yml @@ -65,10 +66,10 @@ jobs: dev: ${{ needs.set-outputs.outputs.dev }} release: ${{ needs.set-outputs.outputs.release }} secrets: inherit - + """ # TODO: add release container build steps once build-container-and-push: - needs: [set-outputs, test-wheel-and-publish] + needs: set-outputs uses: ./.github/workflows/build-container.yml with: build-label: aws-avx2-64G