Skip to content

Commit

Permalink
GitHub Workflows security hardening (#3884)
Browse files Browse the repository at this point in the history
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
  • Loading branch information
sashashura authored Apr 23, 2024
1 parent 60b9565 commit a179735
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 a179735

Please sign in to comment.