Skip to content

Commit 9ac5b10

Browse files
authored
Switch from permissive to restricted workflow permissions for the (ephemeral) GITHUB_TOKEN.
[Build]
1 parent cffcfd9 commit 9ac5b10

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13-
13+
permissions:
14+
contents: write # Required by actions/create-release@v1
15+
packages: read
16+
1417
steps:
1518
- uses: actions/checkout@v2
1619
- name: Setup tmate session
@@ -84,4 +87,4 @@ jobs:
8487
token: ${{ secrets.REPO_DISPATCH_TOKEN }}
8588
repository: tlaplus/tlaplus
8689
event-type: tlaplus-dispatch
87-
client-payload: '{"source": "CommunityModules"}'
90+
client-payload: '{"source": "CommunityModules"}'

0 commit comments

Comments
 (0)