Skip to content

Commit 2c1d0a7

Browse files
authored
Merge pull request #258 from crytic/zizmor
ci: fix zizmor warnings
2 parents 8a63c15 + 2b09b05 commit 2c1d0a7

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2727
os: ["ubuntu-latest", "ubuntu-24.04-arm", "macos-latest", "macos-15-intel", "windows-2022"]
2828
steps:
29-
- uses: actions/checkout@v6
30-
- uses: astral-sh/setup-uv@v7
29+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
30+
with:
31+
persist-credentials: false
32+
- uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7
3133
with:
3234
python-version: ${{ matrix.python }}
3335
- name: Install QEMU and libc

.github/workflows/lint.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v6
24+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
25+
with:
26+
persist-credentials: false
2527

26-
- uses: astral-sh/setup-uv@v7
28+
- uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7
2729

2830
- name: Install solc-select and test dependencies
2931
run: uv sync --extra dev
@@ -35,4 +37,4 @@ jobs:
3537
run: uv run ruff format --check .
3638

3739
- name: Run mypy type checking
38-
run: uv run mypy . --config-file pyproject.toml
40+
run: uv run mypy . --config-file pyproject.toml

.github/workflows/pip-audit.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
pip-audit:
1720
runs-on: ubuntu-latest
1821

1922
steps:
2023
- name: Checkout repository
21-
uses: actions/checkout@v6
24+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
25+
with:
26+
persist-credentials: false
2227

2328
- name: Install Python
24-
uses: actions/setup-python@v6
29+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
2530
with:
2631
python-version: "3.x"
2732

@@ -34,6 +39,6 @@ jobs:
3439
python -m pip install .
3540
3641
- name: Run pip-audit
37-
uses: pypa/[email protected]
42+
uses: pypa/gh-action-pip-audit@1220774d901786e6f652ae159f7b6bc8fea6d266 # v1.1.0
3843
with:
3944
virtual-environment: /tmp/pip-audit-env

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build-release:
9-
1012
runs-on: ubuntu-latest
1113

1214
steps:
13-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
16+
with:
17+
persist-credentials: false
1418

1519
- name: Set up Python
16-
uses: actions/setup-python@v6
20+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
1721
with:
1822
python-version: '3.x'
1923

@@ -24,7 +28,7 @@ jobs:
2428
python -m build
2529
2630
- name: Upload distributions
27-
uses: actions/upload-artifact@v6
31+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
2832
with:
2933
name: solc-select-dists
3034
path: dist/
@@ -39,16 +43,16 @@ jobs:
3943
- build-release
4044
steps:
4145
- name: fetch dists
42-
uses: actions/download-artifact@v7
46+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
4347
with:
4448
name: solc-select-dists
4549
path: dist/
4650

4751
- name: publish
48-
uses: pypa/[email protected]
52+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4953

5054
- name: sign
51-
uses: sigstore/[email protected]
55+
uses: sigstore/gh-action-sigstore-python@a5caf349bc536fbef3668a10ed7f5cd309a4b53d # v3.2.0
5256
with:
5357
inputs: ./dist/*.tar.gz ./dist/*.whl
5458
release-signing-artifacts: true

0 commit comments

Comments
 (0)