mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-26 18:30:28 +00:00
GitHub Workflows security hardening (#3884)
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
This commit is contained in:
parent
60b9565277
commit
a179735103
5
.github/workflows/bad-pr.yml
vendored
5
.github/workflows/bad-pr.yml
vendored
@ -4,8 +4,13 @@ on:
|
|||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, reopened]
|
types: [opened, reopened]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
close-pr:
|
close-pr:
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "contains(github.event.pull_request.body, 'by deleting this comment block') || github.event.pull_request.body == ''"
|
if: "contains(github.event.pull_request.body, 'by deleting this comment block') || github.event.pull_request.body == ''"
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user