Skip to content

Commit 9642a03

Browse files
casenavegithub-advanced-security[bot]fabiencasenave
authored
🚀 Potential fix for code scanning alert no. 8: Workflow does not contain permissions (#71)
* Potential fix for code scanning alert no. 8: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix(actions) restrict permission of action configuration files --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Fabien Casenave <fabien.casenave@safrangroup.com>
1 parent 4268423 commit 9642a03

File tree

7 files changed

+24
-0
lines changed

7 files changed

+24
-0
lines changed

‎.github/workflows/checksum_release.yml‎

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
get-sha256:
1013
runs-on: ubuntu-latest

‎.github/workflows/doc.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: '0 0 * * *' # Every day at 00:00 UTC
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
doc:
1114
runs-on: ubuntu-latest

‎.github/workflows/draft-pdf.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Draft JOSS PDF
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
push:
48
paths:

‎.github/workflows/lint-format-check.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Lint, format and type check
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
branches: [main]

‎.github/workflows/pr-title-checker.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: PR Title Checker
22

3+
permissions:
4+
contents: read
5+
pull-requests: read
6+
37
on:
48
pull_request:
59
types: [opened, edited, synchronize, reopened]

‎.github/workflows/publish-pypi.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
test:
99
name: test
10+
permissions:
11+
contents: read
1012
runs-on: ${{ matrix.os }}
1113
strategy:
1214
matrix:
@@ -56,6 +58,8 @@ jobs:
5658
build:
5759
name: Build wheels for multiple Python versions
5860
needs: test
61+
permissions:
62+
contents: read
5963
runs-on: ubuntu-latest
6064

6165
steps:

‎.github/workflows/testing.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests and Examples
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
pull_request:

0 commit comments

Comments
 (0)