Skip to content

Commit c6ebb27

Browse files
committed
ci: constrain GITHUB_TOKEN permissions
References: actions/checkout#485
1 parent e0a0bc1 commit c6ebb27

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
test:
1013
name: test

.github/workflows/release.yml

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

8+
permissions:
9+
contents: write
10+
811
jobs:
912

1013
build-package:

0 commit comments

Comments
 (0)