Skip to content

Commit 4998cec

Browse files
authored
Fix code scanning issues in workflows (#66)
1 parent 30782c9 commit 4998cec

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
test:
1821
name: py-${{ matrix.python-version }}-${{ matrix.platform }}
@@ -30,10 +33,10 @@ jobs:
3033
python-version: py313
3134
steps:
3235
- name: Checkout
33-
uses: actions/checkout@v6
36+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3437

3538
- name: Set up pixi
36-
uses: prefix-dev/setup-pixi@v0.9.6
39+
uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
3740
with:
3841
environments: ${{ matrix.python-version }}
3942
cache: true

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- "v*.*.*"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
name: Test wheel on py-${{ matrix.python-version }}
@@ -16,12 +19,12 @@ jobs:
1619
python-version: [py312, py313]
1720
steps:
1821
- name: Checkout
19-
uses: actions/checkout@v6
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2023
with:
2124
fetch-depth: 0
2225

2326
- name: Set up pixi
24-
uses: prefix-dev/setup-pixi@v0.9.6
27+
uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
2528
with:
2629
environments: ${{ matrix.python-version }}
2730
cache: true
@@ -44,12 +47,12 @@ jobs:
4447
contents: read
4548
steps:
4649
- name: Checkout
47-
uses: actions/checkout@v6
50+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4851
with:
4952
fetch-depth: 0
5053

5154
- name: Set up pixi
52-
uses: prefix-dev/setup-pixi@v0.9.6
55+
uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
5356
with:
5457
cache: true
5558

@@ -58,6 +61,6 @@ jobs:
5861
pixi run wheel-build
5962
6063
- name: Publish to PyPI
61-
uses: pypa/gh-action-pypi-publish@release/v1
64+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
6265
with:
6366
verbose: true

0 commit comments

Comments
 (0)