Skip to content

Commit f3a7007

Browse files
committed
Add permissions
1 parent 3d22c38 commit f3a7007

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

.github/workflows/add_to_octokit_project.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request_target:
77
types: [reopened, opened]
88

9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
913
jobs:
1014
add-to-project:
1115
name: Add issue to project
@@ -14,7 +18,7 @@ jobs:
1418
steps:
1519
- uses: actions/[email protected]
1620
with:
17-
project-url: https://github.com/orgs/octokit/projects/10
18-
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
21+
project-url: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN && 'https://github.com/orgs/octokit/projects/10' || '' }}
22+
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN || github.token }}
1923
labeled: "Status: Stale"
2024
label-operator: NOT

.github/workflows/codeql-analysis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
schedule:
1111
- cron: '0 13 * * 5'
1212

13+
permissions:
14+
contents: read
15+
actions: read
16+
security-events: write
17+
1318
jobs:
1419
CodeQL-Build:
1520

.github/workflows/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ name: Release
66
- next
77
- beta
88
- "*.x"
9+
10+
permissions:
11+
contents: read
12+
913
jobs:
1014
release:
1115
name: release

.github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ name: Test
88
types:
99
- opened
1010
- synchronize
11+
12+
permissions:
13+
contents: read
14+
1115
jobs:
1216
test_matrix:
1317
runs-on: ubuntu-latest

.github/workflows/update-prettier.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Update Prettier
33
push:
44
branches:
55
- renovate/prettier-*
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
update_prettier:
812
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)