Skip to content

Commit 1a1b71d

Browse files
CI: Add read-only permission to workflows
1 parent 4ed82c4 commit 1a1b71d

9 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/codespell.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: codespell
22
on: [pull_request]
3+
permissions:
4+
contents: read
35
jobs:
46
codespell:
57
runs-on: ubuntu-latest
68
steps:
7-
- uses: actions/checkout@v6
8-
- uses: codespell-project/actions-codespell@v2.2
9+
- uses: actions/checkout@v6
10+
- uses: codespell-project/actions-codespell@v2.2

.github/workflows/config-options.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Config options
22
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
35

46
concurrency:
57
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/custom-branch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
required: false
1212
type: string
1313
default: libsemigroups/libsemigroups
14+
permissions:
15+
contents: read
1416

1517
concurrency:
1618
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/doc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Check documentation builds
22
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
35

46
concurrency:
57
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Lint
22
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
35

46
concurrency:
57
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/pip.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Run tests (pip)
22
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
35

46
concurrency:
57
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/test-conda.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- "stable-*"
77
- "rc-*"
8+
permissions:
9+
contents: read
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Run tests (GitHub libsemigroups)
22
on: [pull_request, workflow_dispatch]
3+
permissions:
4+
contents: read
35

46
concurrency:
57
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/wheels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
pull_request:
1111
paths:
1212
- .github/workflows/wheels.yml
13+
permissions:
14+
contents: read
1315

1416
concurrency:
1517
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)