Skip to content

Commit 0a2c245

Browse files
authored
Merge pull request #15538 from turrisxyz/Pinned-Dependencies-GitHub
chore: Set permissions for GitHub actions
2 parents 9bb3108 + 1d9559a commit 0a2c245

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ jobs:
608608
run: .github/workflows/scripts/triggerUnmanagedCommunityBuild.sh "${{ secrets.BUILD_TOKEN }}" "$THISBUILD_VERSION"
609609

610610
publish_release:
611+
permissions:
612+
contents: write # for actions/create-release to create a release
611613
runs-on: [self-hosted, Linux]
612614
container:
613615
image: lampepfl/dotty:2021-03-22

.github/workflows/cla.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- 'language-reference-backport'
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
check:
913
runs-on: ubuntu-latest

.github/workflows/language-reference.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ on:
99
- 'language-reference-stable'
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build-and-push:
17+
permissions:
18+
contents: write # for Git to git push
19+
pull-requests: write # for peter-evans/create-pull-request to create a PR
1420
runs-on: ubuntu-latest
1521
steps:
1622
- name: Get current date

.github/workflows/releases.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Releases
22
on:
33
workflow_dispatch:
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
publish_release:
710
runs-on: [self-hosted, Linux]

.github/workflows/scaladoc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches-ignore:
99
- 'language-reference-stable'
10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
env:

0 commit comments

Comments
 (0)