Skip to content

Commit 774b84d

Browse files
authored
Merge pull request #212 from ymyzk/actions-permissions
Set permissions explicitly in GitHub Actions
2 parents 19850b5 + c07d39c commit 774b84d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/packaging.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15-
strategy:
16-
matrix:
17-
python-version: [3.13]
15+
permissions:
16+
contents: read
1817
steps:
1918
- uses: actions/checkout@v4
20-
- name: Set up Python ${{ matrix.python-version }}
19+
- name: Set up Python
2120
uses: actions/setup-python@v5
2221
with:
23-
python-version: ${{ matrix.python-version }}
22+
python-version: 3.13
2423
- name: Install dependencies
2524
run: python -m pip install --upgrade build
2625
- name: Create packages

.github/workflows/tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build:
1010
runs-on: ${{ matrix.platform }}
11+
permissions:
12+
contents: read
1113
strategy:
1214
fail-fast: false
1315
matrix:
@@ -33,7 +35,6 @@ jobs:
3335
python-version: 3.7
3436
- platform: windows-latest
3537
python-version: pypy-3.9
36-
3738
steps:
3839
- uses: actions/checkout@v4
3940
if: ${{ ! startsWith(matrix.python-version, 'pypy-') }}

0 commit comments

Comments
 (0)