Skip to content

Commit 76468f9

Browse files
authored
Add minimal permissions to some actions workflows (#114)
1 parent 6d8327a commit 76468f9

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

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

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

88
concurrency: announce-a-release
99

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

.github/workflows/breakage-against-linux-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
libressl-3-vs-ponyc-latest:
912
name: LibreSSL 3.x with most recent ponyc latest

.github/workflows/breakage-against-windows-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: [ponyc-windows-nightly-released]
66

7+
permissions:
8+
packages: read
9+
710
jobs:
811
windows-vs-ponyc-latest:
912
name: Test against recent ponyc release on Windows

.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
@@ -7,6 +7,10 @@ on:
77

88
concurrency: prepare-for-a-release
99

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

0 commit comments

Comments
 (0)