Skip to content

Commit 6170b3e

Browse files
committed
Pin actions and add Dependabot config
Add .github/dependabot.yml to enable weekly Dependabot updates for GitHub Actions. Update workflow files to pin several action usages to specific commits/SHAs: actions/checkout (v6.0.3), dtolnay/rust-toolchain (stable pin), Swatinem/rust-cache (v2.9.1), and mozilla-actions/sccache-action (v0.0.10). Files changed: .github/dependabot.yml, .github/workflows/coingecko.yml, .github/workflows/generate-assets-list.yml, .github/workflows/upload.yml. These pins improve reproducibility and security by avoiding implicit floating tags.
1 parent 29de437 commit 6170b3e

4 files changed

Lines changed: 23 additions & 15 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
cooldown:
8+
default-days: 7

.github/workflows/coingecko.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,37 +39,37 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4343

44-
- name: Checkout core repository
45-
uses: actions/checkout@v4
44+
- name: Checkout wallet repository
45+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4646
with:
47-
repository: gemwalletcom/core
48-
path: core
47+
repository: gemwalletcom/wallet
48+
path: wallet
4949

5050
- name: Install Rust
51-
uses: dtolnay/rust-toolchain@stable
51+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
5252

5353
- name: Restore cargo cache
54-
uses: Swatinem/rust-cache@v2
54+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
5555
with:
5656
prefix-key: "v1-rust"
57-
workspaces: "core -> target"
57+
workspaces: "wallet/core -> target"
5858

5959
- name: Run sccache-cache
60-
uses: mozilla-actions/sccache-action@v0.0.9
60+
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
6161

6262
- name: Download images
63-
working-directory: core
63+
working-directory: wallet/core
6464
env:
6565
COINGECKO_KEY_SECRET: ${{ secrets.COINGECKO_KEY_SECRET }}
6666
run: |
6767
if [ -n "${{ inputs.coin_id }}" ]; then
68-
cargo run --package img-downloader -- --folder ../blockchains --coin-id ${{ inputs.coin_id }}
68+
cargo run --package img-downloader -- --folder ../../blockchains --coin-id ${{ inputs.coin_id }}
6969
elif [ "${{ github.event.schedule }}" = "30 */3 * * *" ] || [ "${{ inputs.coin_list }}" = "new" ]; then
70-
cargo run --package img-downloader -- --folder ../blockchains --coin-list new --delay 10000
70+
cargo run --package img-downloader -- --folder ../../blockchains --coin-list new --delay 10000
7171
else
72-
cargo run --package img-downloader -- --folder ../blockchains --coin-list trending --delay 20000
72+
cargo run --package img-downloader -- --folder ../../blockchains --coin-list trending --delay 20000
7373
fi
7474
7575
- name: Generate assets list

.github/workflows/generate-assets-list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2323

2424
- name: Generate assets list
2525
run: ./.github/scripts/generate-assets-list.sh

.github/workflows/upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2929
with:
3030
ref: ${{ github.ref_name || 'master' }}
3131
fetch-depth: 2

0 commit comments

Comments
 (0)