Skip to content

Commit bb5192c

Browse files
authored
Set minimal permissions for some workflows (#69)
1 parent e453057 commit bb5192c

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.github/workflows/announce-a-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66

77
concurrency: announce-a-release
88

9+
permissions:
10+
packages: read
11+
contents: write
12+
913
jobs:
1014
announce:
1115
name: Announcements

.github/workflows/breakage-against-ponyc-latest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
repository_dispatch:
55
types: [shared-docker-linux-builders-updated]
66

7+
permissions:
8+
packages: read
9+
710
jobs:
811
vs-latest-ponyc:
912
name: Verify main against the latest ponyc

.github/workflows/pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ concurrency:
66
group: pr-${{ github.ref }}
77
cancel-in-progress: true
88

9+
permissions:
10+
packages: read
11+
912
jobs:
1013
superlinter:
1114
name: Lint bash, docker, markdown, and yaml

.github/workflows/prepare-for-a-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66

77
concurrency: prepare-for-a-release
88

9+
permissions:
10+
packages: read
11+
contents: write
12+
913
jobs:
1014
# all tasks that need to be done before we add an X.Y.Z tag
1115
# should be done as a step in the pre-tagging job.

0 commit comments

Comments
 (0)