Skip to content

Commit b3d3443

Browse files
bcorsoDagger Team
authored andcommitted
Enable write permission to GitHub Action's "Publish Artifact" job.
RELNOTES=N/A PiperOrigin-RevId: 738477146
1 parent 9001b55 commit b3d3443

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ jobs:
117117
]
118118
if: github.event_name == 'push' && github.repository == 'google/dagger' && github.ref == 'refs/heads/master'
119119
runs-on: ubuntu-latest
120+
permissions:
121+
contents: write
120122
steps:
121123
- name: 'Install Java ${{ env.USE_JAVA_VERSION }}'
122124
uses: actions/setup-java@v4

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ jobs:
9090
test-gradle-plugin
9191
]
9292
runs-on: ubuntu-latest
93+
permissions:
94+
contents: write
9395
steps:
9496
- name: 'Install Java ${{ env.USE_JAVA_VERSION }}'
9597
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)