Skip to content

Commit 5405dcf

Browse files
committed
Action audit
1 parent 30d2e23 commit 5405dcf

4 files changed

Lines changed: 17 additions & 12 deletions

File tree

.github/workflows/check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ on:
88
description: Specific version to check
99
type: string
1010
allow-prereleases:
11-
required: true
12-
default: false
13-
description: Include prereleases in the check
14-
type: boolean
15-
11+
required: true
12+
default: false
13+
description: Include prereleases in the check
14+
type: boolean
1615

1716
jobs:
1817
test_python_build:
@@ -26,6 +25,7 @@ jobs:
2625
- name: Checkout code
2726
uses: actions/checkout@v4
2827
with:
28+
persist-credentials: false
2929
submodules: recursive
3030
- name: Test action with Python ${{ inputs.python-version }}
3131
id: build
@@ -35,4 +35,4 @@ jobs:
3535
allow-build: info
3636
allow-prereleases: ${{ inputs.allow-prereleases }}
3737
- name: Check Python version
38-
run: python ./.github/scripts/check_python_version.py ${{ inputs.python-version }}
38+
run: python ./.github/scripts/check_python_version.py ${{ inputs.python-version }}

.github/workflows/periodic_check.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
schedule:
55
- cron: 0 0 * * *
66
workflow_dispatch:
7-
87

98
jobs:
109
# Create strategy matrix with a python script
@@ -17,6 +16,7 @@ jobs:
1716
- name: Checkout code
1817
uses: actions/checkout@v4
1918
with:
19+
persist-credentials: false
2020
submodules: recursive
2121
- name: Update pip
2222
run: python -m pip install --upgrade pip
@@ -27,7 +27,7 @@ jobs:
2727
- name: Create matrix
2828
id: matrix
2929
run: python ./.github/scripts/create_python_matrix.py true
30-
30+
3131
# Test the action with all possible combinations of python versions and os
3232
test_action:
3333
needs: create_matrix
@@ -40,6 +40,7 @@ jobs:
4040
- name: Checkout code
4141
uses: actions/checkout@v4
4242
with:
43+
persist-credentials: false
4344
submodules: recursive
4445
- name: Setup Python ${{ matrix.python-version }}
4546
uses: MatteoH2O1999/setup-python@v5
@@ -48,4 +49,4 @@ jobs:
4849
allow-build: info
4950
cache-build: ${{ matrix.cache }}
5051
- name: Check Python version
51-
run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }}
52+
run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }}

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
update_tags:
1111
runs-on: ubuntu-latest
1212
name: Update version tags
13+
permissions:
14+
contents: write
1315
steps:
1416
- name: Update tags
1517
uses: actions/publish-action@v0.3.0
1618
with:
17-
source-tag: ${{ github.event.release.tag_name }}
19+
source-tag: ${{ github.event.release.tag_name }}

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- name: Checkout code
2323
uses: actions/checkout@v4
2424
with:
25+
persist-credentials: false
2526
submodules: recursive
2627
- name: Update pip
2728
run: python -m pip install --upgrade pip
@@ -32,7 +33,7 @@ jobs:
3233
- name: Create matrix
3334
id: matrix
3435
run: python ./.github/scripts/create_python_matrix.py false
35-
36+
3637
# Test the action with all possible combinations of python versions and os
3738
test_action:
3839
needs: create_matrix
@@ -45,11 +46,12 @@ jobs:
4546
- name: Checkout code
4647
uses: actions/checkout@v4
4748
with:
49+
persist-credentials: false
4850
submodules: recursive
4951
- name: Setup Python ${{ matrix.python-version }}
5052
uses: ./
5153
with:
5254
python-version: ${{ matrix.python-version }}
5355
allow-build: info
5456
- name: Check Python version
55-
run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }}
57+
run: python ./.github/scripts/check_python_version.py ${{ matrix.python-version }}

0 commit comments

Comments
 (0)