Skip to content

Commit 2b7923f

Browse files
committed
fix: repair publish workflow and pin actions by hash
- Add --locked to cargo install cross to prevent dependency resolution failures (home@0.5.12 requires rustc 1.88) - Replace deprecated macos-12 runner with macos-latest and switch to aarch64-apple-darwin (Apple Silicon) target - Pin all GitHub Actions by commit hash for supply-chain security
1 parent 97c189e commit 2b7923f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
target: arm-unknown-linux-gnueabihf
4444
asset_name: fqgrep-arm-unknown-linux-gnueabihf
4545
- build: macos
46-
os: macos-12
46+
os: macos-latest
4747
rust: nightly
48-
target: x86_64-apple-darwin
49-
asset_name: fqgrep-x86_64-apple-darwin
48+
target: aarch64-apple-darwin
49+
asset_name: fqgrep-aarch64-apple-darwin
5050
- build: win-msvc
5151
os: windows-2022
5252
rust: nightly
@@ -65,24 +65,24 @@ jobs:
6565

6666
steps:
6767
- name: Checkout repository
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6969

7070
- name: Install Rust
71-
uses: dtolnay/rust-toolchain@master
71+
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master
7272
with:
7373
toolchain: ${{ matrix.rust }}
7474
target: ${{ matrix.target }}
7575

7676
- name: Rust cache
77-
uses: Swatinem/rust-cache@v2
77+
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
7878
with:
7979
key: ${{ matrix.job.os }}-${{ matrix.job.target }}
8080

8181
- name: Use Cross
8282
shell: bash
8383
if: ${{ matrix.use-cross == true }}
8484
run: |
85-
cargo install cross
85+
cargo install cross --locked
8686
echo "CARGO=cross" >> $GITHUB_ENV
8787
8888
- name: Set target environment variables
@@ -126,7 +126,7 @@ jobs:
126126
fi
127127
128128
- name: Upload binaries to release
129-
uses: svenstaro/upload-release-action@v2
129+
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2
130130
with:
131131
repo_token: ${{ secrets.GITHUB_TOKEN }}
132132
file: fqgrep-${{ matrix.target }}

0 commit comments

Comments
 (0)