Skip to content

Commit 5ad219e

Browse files
committed
DEV: specify minimum permissions for github actions to work
1 parent 9084078 commit 5ad219e

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed

.github/workflows/add_source_to_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
upload-source:
912
runs-on: ubuntu-latest

.github/workflows/build_container.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
paths:
99
- .devcontainer/DockerFile
1010

11+
permissions:
12+
contents: read
13+
packages: write
14+
1115
jobs:
1216
build-and-push:
1317
runs-on: ubuntu-latest

.github/workflows/build_docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'mkdocs.yml'
1515
- 'rtd_get_docs.py'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build-iqtree:
1922
name: Fetch or Build IQ-TREE Static Library

.github/workflows/build_wheels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build Wheels
22

33
on: [workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
name: Build Wheels for ${{matrix.platform_id}} on ${{matrix.os}}

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
push:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build-iqtree:
1215
name: Fetch or Build IQ-TREE Static Library on ${{matrix.os}}

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Release
22

33
on: [workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build-wheels:
710
name: Build Wheels for ${{matrix.platform_id}} on ${{matrix.os}}

0 commit comments

Comments
 (0)