Skip to content

Commit 07c196a

Browse files
Pin GitHub Actions and tighten workflow permissions
Co-authored-by: Greg Nazario <greg@gnazar.io>
1 parent bcd314c commit 07c196a

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/actions/python-setup/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ runs:
1717
using: composite
1818
steps:
1919
- name: Setup python
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
2121
with:
2222
python-version: ${{ inputs.python_version }}
2323

2424
- name: Install uv
25-
uses: astral-sh/setup-uv@v5
25+
uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081
2626
with:
2727
enable-cache: true
2828
cache-dependency-glob: "**/uv.lock"
2929

3030
- name: Setup AikidoSec Safe Chain
31-
uses: aptos-labs/actions/aikidosec-safe-chain@main
31+
uses: aptos-labs/actions/aikidosec-safe-chain@528ef7ad9427a8c0720ea3eea790a9190d6e377d
3232

3333
- name: Install project
3434
if: inputs.pyproject_directory != ''

.github/workflows/devnet-examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
API_KEY: ${{ secrets.DEVNET_API_KEY }}
2424
FAUCET_AUTH_TOKEN: ${{ secrets.DEVNET_FAUCET_AUTH_TOKEN }}
2525
steps:
26-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
2727

2828
- uses: ./.github/actions/python-setup
2929
with:

.github/workflows/lints.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
matrix:
2121
python-version: ["3.12", "3.13"]
2222
steps:
23-
- uses: actions/checkout@v5
23+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
2424

2525
- name: Run python setup
2626
uses: ./.github/actions/python-setup
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Upload to Codecov
4848
if: always()
49-
uses: codecov/codecov-action@v5
49+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe
5050
with:
5151
files: coverage.xml
5252
flags: v1-sdk

.github/workflows/localnet-examples.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323
APTOS_TEST_USE_EXISTING_NETWORK: true
2424

2525
steps:
26-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
2727

2828
- name: Checkout aptos-core
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
3030
with:
3131
repository: aptos-labs/aptos-core
3232
path: './aptos-core'
3333

3434
- name: Run a localnet
35-
uses: aptos-labs/actions/run-local-testnet@main
35+
uses: aptos-labs/actions/run-local-testnet@528ef7ad9427a8c0720ea3eea790a9190d6e377d
3636
with:
3737
node_version: v22.14.0
3838
pnpm_version: 9.15.4

.github/workflows/publish.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ on:
1212

1313
permissions:
1414
contents: read
15-
id-token: write
1615

1716
jobs:
1817
test:
1918
name: Test before publish
2019
runs-on: ubuntu-latest
2120
steps:
22-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
2322

2423
- uses: ./.github/actions/python-setup
2524
with:
@@ -36,15 +35,15 @@ jobs:
3635
needs: test
3736
runs-on: ubuntu-latest
3837
steps:
39-
- uses: actions/checkout@v5
38+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
4039

4140
- uses: ./.github/actions/python-setup
4241

4342
- name: Build package
4443
run: uv build
4544

4645
- name: Upload build artifacts
47-
uses: actions/upload-artifact@v4
46+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
4847
with:
4948
name: dist
5049
path: dist/
@@ -56,13 +55,14 @@ jobs:
5655
runs-on: ubuntu-latest
5756
environment: pypi
5857
permissions:
58+
contents: read
5959
id-token: write
6060
steps:
6161
- name: Download build artifacts
62-
uses: actions/download-artifact@v4
62+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
6363
with:
6464
name: dist
6565
path: dist/
6666

6767
- name: Publish to PyPI via trusted publishing
68-
uses: pypa/gh-action-pypi-publish@release/v1
68+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b

.github/workflows/v2-ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ jobs:
3333
run:
3434
working-directory: v2
3535
steps:
36-
- uses: actions/checkout@v5
36+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
3737

38-
- uses: astral-sh/setup-uv@v5
38+
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081
3939
with:
4040
enable-cache: true
4141
cache-dependency-glob: "v2/uv.lock"
4242

4343
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v5
44+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747

4848
- name: Setup AikidoSec Safe Chain
49-
uses: aptos-labs/actions/aikidosec-safe-chain@main
49+
uses: aptos-labs/actions/aikidosec-safe-chain@528ef7ad9427a8c0720ea3eea790a9190d6e377d
5050

5151
- name: Install dependencies
5252
run: uv sync --extra dev
@@ -56,7 +56,7 @@ jobs:
5656

5757
- name: Upload to Codecov
5858
if: always()
59-
uses: codecov/codecov-action@v5
59+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe
6060
with:
6161
files: v2/coverage.xml
6262
flags: v2-sdk
@@ -67,7 +67,7 @@ jobs:
6767
name: V2 integrated import test
6868
runs-on: ubuntu-latest
6969
steps:
70-
- uses: actions/checkout@v5
70+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
7171

7272
- uses: ./.github/actions/python-setup
7373
with:

0 commit comments

Comments
 (0)