Skip to content

Commit 2774bb8

Browse files
authored
Let the deploy job read the repository
The deploy action is referenced with $/, which the runner downloads from this private repository at the running commit using the job's GITHUB_TOKEN. Giving the job only actions: write left it without contents: read, so setting up the job failed with "An action could not be found".
1 parent de44d0e commit 2774bb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/build-and-deploy.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
runs-on: ubuntu-latest
7070
permissions:
7171
actions: write
72+
contents: read
7273
environment:
7374
name: ${{ inputs.environment }}
7475
url: ${{ inputs.url }}

0 commit comments

Comments
 (0)