Skip to content

Commit 0874912

Browse files
authored
Add permissions to GitHub Actions workflows (#1344)
Explicitly set required permissions in test-conda.yml and test-package-build.yml workflows to improve security and clarify access needs.
1 parent 1f4934a commit 0874912

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/test-conda.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Tests
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.github/workflows/test-package-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Test package building
2+
permissions:
3+
contents: read
4+
pull-requests: write
5+
id-token: write
26

37
on:
48
push:

0 commit comments

Comments
 (0)