Skip to content

Commit e02296c

Browse files
authored
Merge pull request cakephp#16540 from turrisxyz/Pinned-Dependencies-GitHub
chore: Set permissions for GitHub actions
2 parents 5a0f0f0 + c0afd47 commit e02296c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/cancel.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ on:
44
workflows: ["CI"]
55
types:
66
- requested
7+
permissions:
8+
contents: read
9+
710
jobs:
811
cancel:
12+
permissions:
13+
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
914
runs-on: ubuntu-latest
1015
steps:
1116
- uses: styfle/cancel-workflow-action@0.9.1

.github/workflows/stale.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
stale:
912

13+
permissions:
14+
issues: write # for actions/stale to close stale issues
15+
pull-requests: write # for actions/stale to close stale PRs
1016
runs-on: ubuntu-latest
1117

1218
steps:

0 commit comments

Comments
 (0)