Skip to content

Commit

Permalink
GitHub Workflows security hardening (mmistakes#3884)
Browse files Browse the repository at this point in the history
Signed-off-by: sashashura <[email protected]>
  • Loading branch information
sashashura authored and minyoongi96 committed Aug 26, 2024
1 parent 8e0ca34 commit d954d97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/bad-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ on:
pull_request_target:
types: [opened, reopened]

permissions:
contents: read

jobs:
close-pr:
permissions:
pull-requests: write
runs-on: ubuntu-latest
if: "contains(github.event.pull_request.body, 'by deleting this comment block') || github.event.pull_request.body == ''"
steps:
Expand Down

0 comments on commit d954d97

Please sign in to comment.