Skip to content

Commit a6b0f7f

Browse files
Explicit workflow permissions
1 parent 7fe3e0d commit a6b0f7f

9 files changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: Continuous integration
2+
23
on:
34
push:
45
branches: [main]
56
pull_request:
67
schedule:
78
- cron: "0 0 1,15 * *"
89

10+
permissions:
11+
contents: read
12+
913
# In the event that there is a new push to the ref, cancel any running jobs because there are now obsolete, and wasting resources.
1014
concurrency:
1115
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/perf.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Performance testing
2+
23
on:
34
pull_request:
45
paths:
56
- 'stack-graphs/**'
67

8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
712
# In the event that there is a new push to the ref, cancel any running jobs because there are now obsolete, and wasting resources.
813
concurrency:
914
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/publish-lsp-positions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- lsp-positions-v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish-crate:
1013
runs-on: ubuntu-latest

.github/workflows/publish-stack-graphs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- stack-graphs-v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish-crate:
1013
runs-on: ubuntu-latest

.github/workflows/publish-tree-sitter-stack-graphs-java.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- tree-sitter-stack-graphs-java-v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish-crate:
1013
runs-on: ubuntu-latest

.github/workflows/publish-tree-sitter-stack-graphs-javascript.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- tree-sitter-stack-graphs-javascript-v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish-crate:
1013
runs-on: ubuntu-latest

.github/workflows/publish-tree-sitter-stack-graphs-python.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- tree-sitter-stack-graphs-python-v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish-crate:
1013
runs-on: ubuntu-latest

.github/workflows/publish-tree-sitter-stack-graphs-typescript.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- tree-sitter-stack-graphs-typescript-v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish-crate:
1013
runs-on: ubuntu-latest

.github/workflows/publish-tree-sitter-stack-graphs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- tree-sitter-stack-graphs-v*
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish-crate:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)