Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 1e8cc46

Browse files
author
Stephen Gutekanst
committed
CI: acquire permissions for release uploads
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
1 parent 0f860cc commit 1e8cc46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push
99
# to the branch.
1010
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
11+
permissions:
12+
contents: write # for release creation
1113
steps:
1214
- name: Checkout
1315
uses: actions/checkout@v3
@@ -36,4 +38,4 @@ jobs:
3638
gh release upload "release-$RELEASE_COMMIT" out/doctree-x86_64-windows.exe
3739
env:
3840
RELEASE_COMMIT: ${{steps.recorded_release_version.outputs.commit}}
39-
GITHUB_TOKEN: ${{ secrets.GH_PROJECTS_ACTION_TOKEN }}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)