Skip to content

Commit 1d5444e

Browse files
committed
cargo update, tighten GH workflows
`zizmor` was quite helpful for static analysis of them.
1 parent 5d7761a commit 1d5444e

26 files changed

Lines changed: 464 additions & 155 deletions

.github/actions/bitcoin/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ runs:
2020
- name: Download and Extract the Bitcoin Daemon
2121
if: steps.cache-bitcoind.outputs.cache-hit != 'true'
2222
shell: bash
23+
env:
24+
VERSION: ${{ inputs.version }}
2325
run: |
2426
OS=${{ runner.os }}
2527
ARCH=${{ runner.arch }}
@@ -44,16 +46,16 @@ runs:
4446
EXT="zip"
4547
fi
4648
47-
FILE=bitcoin-${{ inputs.version }}-$ARCH$OS.$EXT
49+
FILE=bitcoin-${ VERSION }-$ARCH$OS.$EXT
4850
49-
curl -L https://bitcoincore.org/bin/bitcoin-core-${{ inputs.version }}/$FILE -o $FILE
51+
curl -L https://bitcoincore.org/bin/bitcoin-core-${ VERSION }/$FILE -o $FILE
5052
5153
if [ "${{ runner.os }}" = "Windows" ]; then
5254
unzip $FILE
5355
mv $(find . -name "bitcoind*") .
5456
else
5557
tar -xf $FILE
56-
cd bitcoin-${{ inputs.version }}
58+
cd bitcoin-${ VERSION }
5759
if [ "${{ runner.os }}" = "macOS" ]; then
5860
sudo mv bin/* /usr/local/bin/
5961
else

.github/actions/docker/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
sudo apt install -y uidmap
1717
1818
- name: Install rootless Docker (Linux)
19-
uses: docker/setup-docker-action@1a6edb0ba9ac496f6850236981f15d8f9a82254d # 5.0.0
19+
uses: docker/setup-docker-action@b2189fbf2a6592b51fee7cdd93ee2bfaeba733db # 5.1.0
2020
if: runner.os == 'Linux'
2121
with:
2222
rootless: true
@@ -47,7 +47,7 @@ runs:
4747
fi
4848
4949
- name: Install Docker (macOS)
50-
uses: docker/setup-docker-action@1a6edb0ba9ac496f6850236981f15d8f9a82254d # 5.0.0
50+
uses: docker/setup-docker-action@b2189fbf2a6592b51fee7cdd93ee2bfaeba733db # 5.1.0
5151
if: runner.os == 'macOS'
5252
env:
5353
# m1 chips, as seen in the GitHub CI, don't support nested hardware virtualization.

.github/actions/monero/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ runs:
2020
- name: Download the Monero Daemon
2121
if: steps.cache-monerod.outputs.cache-hit != 'true'
2222
shell: bash
23+
env:
24+
VERSION: ${{ inputs.version }}
2325
run: |
2426
OS=${{ runner.os }}
2527
ARCH=${{ runner.arch }}
@@ -38,12 +40,12 @@ runs:
3840
if [ "$OS" = "macos" ]; then
3941
OS="mac"
4042
# If this is an ARM macOS downloading a historic version, download x64 to run via Rosetta
41-
if [ $(echo "${{ inputs.version }}" | cut -d'.' -f2) -lt 18 ]; then
43+
if [ $(echo "${ VERSION }" | cut -d'.' -f2) -lt 18 ]; then
4244
ARCH="x64"
4345
fi
4446
fi
4547
46-
FILE=monero-$OS-$ARCH-${{ inputs.version }}.$EXT
48+
FILE=monero-$OS-$ARCH-${ VERSION }.$EXT
4749
mkdir monero-tmp
4850
cd monero-tmp
4951
curl -L https://downloads.getmonero.org/cli/$FILE -o $FILE

.github/actions/test-dependencies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ runs:
2121
- name: Install Foundry
2222
uses: foundry-rs/foundry-toolchain@c7450ba673e133f5ee30098b3b54f444d3a2ca2d # 1.8.0
2323
with:
24-
version: v1.5.1
24+
version: f83bad912a9dba7bf0371def1e70bb1896048356 # 1.7.0
2525
cache: false
2626

2727
- name: Run a Monero Regtest Node

.github/workflows/common-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: common/ Tests
2+
permissions: {}
23

34
on:
45
push:
@@ -16,13 +17,17 @@ on:
1617

1718
jobs:
1819
test-common:
20+
name: Test `common/` crates
21+
1922
strategy:
2023
matrix:
2124
os: [ubuntu-latest, macos-26-intel, macos-latest]
2225
runs-on: ${{ matrix.os }}
2326

2427
steps:
2528
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
29+
with:
30+
persist-credentials: false
2631

2732
- name: Build Dependencies
2833
uses: ./.github/actions/build-dependencies

.github/workflows/coordinator-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Coordinator Tests
2+
permissions: {}
23

34
on:
45
push:
@@ -28,10 +29,13 @@ on:
2829
workflow_dispatch:
2930

3031
jobs:
31-
build:
32+
test-coordinator:
33+
name: e2e tests for the coordinator (`tests/coordinator`)
3234
runs-on: ubuntu-latest
3335
steps:
3436
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
37+
with:
38+
persist-credentials: false
3539

3640
- name: Install Build Dependencies
3741
uses: ./.github/actions/build-dependencies

.github/workflows/crypto-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: crypto/ Tests
2+
permissions: {}
23

34
on:
45
push:
@@ -18,13 +19,17 @@ on:
1819

1920
jobs:
2021
test-crypto:
22+
name: Test `crypto/` crates
23+
2124
strategy:
2225
matrix:
2326
os: [ubuntu-latest, macos-26-intel, macos-latest, windows-latest]
2427
runs-on: ${{ matrix.os }}
2528

2629
steps:
2730
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
31+
with:
32+
persist-credentials: false
2833

2934
- name: Build Dependencies
3035
uses: ./.github/actions/build-dependencies

.github/workflows/daily-deny.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Daily Deny Check
2+
permissions: {}
23

34
on:
45
schedule:
@@ -10,6 +11,8 @@ jobs:
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
14+
with:
15+
persist-credentials: false
1316

1417
- name: Install `cargo deny`
1518
run: cargo +1.95.0 install --locked cargo-deny --version =0.19.4

.github/workflows/full-stack-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Full Stack Tests
2+
permissions: {}
23

34
on:
45
push:
@@ -10,10 +11,13 @@ on:
1011
workflow_dispatch:
1112

1213
jobs:
13-
build:
14+
test-full-stack:
15+
name: e2e tests for the full stack (`tests/full-stack`)
1416
runs-on: ubuntu-latest
1517
steps:
1618
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
19+
with:
20+
persist-credentials: false
1721

1822
- name: Install Build Dependencies
1923
uses: ./.github/actions/build-dependencies

.github/workflows/libraries-on-redox.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Test Libraries on Redox
2+
permissions: {}
23

34
on:
45
push:
@@ -17,10 +18,13 @@ on:
1718

1819
jobs:
1920
test-redox:
21+
name: Test Libraries on Redox
2022
runs-on: ubuntu-latest
2123

2224
steps:
2325
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
26+
with:
27+
persist-credentials: false
2428

2529
- name: Install QEMU
2630
run: sudo apt update -y && sudo apt upgrade -y && sudo apt install -y qemu-system-x86

0 commit comments

Comments
 (0)