Skip to content

Commit

Permalink
Reduce permissions for repl-artefacts.yml workflow (#4630)
Browse files Browse the repository at this point in the history
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>

Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
  • Loading branch information
sashashura and lukastaegert committed Sep 21, 2022
1 parent 8193ea5 commit 71d20c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/repl-artefacts.yml
Expand Up @@ -4,8 +4,13 @@ on:
pull_request_target:
types: [synchronize, opened, reopened, labeled]

permissions:
contents: read

jobs:
upload:
permissions:
pull-requests: write # for peter-evans/find-comment and peter-evans/create-or-update-comment
if: ${{ github.event.pull_request.head.repo.full_name == 'rollup/rollup' || contains( toJson(github.event.pull_request.labels), 'x⁸ ⚙️ build repl artefacts' ) }}
runs-on: ubuntu-latest
name: Upload
Expand Down

0 comments on commit 71d20c9

Please sign in to comment.