Skip to content

Commit 755ddaa

Browse files
authored
ci(deps): Enable dependabot for actions (#617)
* ci(deps): Enable dependabot for actions There are lots of outdated github-actions, let's update them. * chore(deps): Pin all github actions If I understand correctly, this should "force" dependabot to update the pins in the future. Not entirely sure tho.
1 parent 0df9b4b commit 755ddaa

File tree

6 files changed

+32
-22
lines changed

6 files changed

+32
-22
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ updates:
1111
- "/ui/"
1212
schedule:
1313
interval: "weekly"
14+
1415
- package-ecosystem: "gitsubmodule" # See documentation for possible values
1516
directory: "/" # Location of package manifests
1617
schedule:
1718
interval: "daily"
19+
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
schedule:
23+
# Check for updates to GitHub Actions every week
24+
interval: "weekly"
25+

.github/workflows/checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
pull-requests: write
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
2323

2424
- name: Setup Node.js
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
2626
with:
2727
node-version-file: .nvmrc
2828
cache: "yarn"
@@ -49,10 +49,10 @@ jobs:
4949
pull-requests: write
5050
steps:
5151
- name: Checkout
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
5353

5454
- name: Setup Node.js
55-
uses: actions/setup-node@v4
55+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
5656
with:
5757
node-version-file: .nvmrc
5858
cache: "yarn"
@@ -62,7 +62,7 @@ jobs:
6262

6363
- name: Cache Restore
6464
id: cache
65-
uses: actions/cache/restore@v4
65+
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # pin@v4
6666
with:
6767
path: cache
6868
key: ${{ runner.os }}-verification-${{ hashFiles('safe.csv') }}-${{ github.sha }}
@@ -113,7 +113,7 @@ jobs:
113113
114114
- name: Cache Save
115115
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
116-
uses: actions/cache/save@v4
116+
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # pin@v4
117117
with:
118118
path: cache
119119
key: ${{ runner.os }}-verification-${{ hashFiles('safe.csv') }}-${{ github.sha }}

.github/workflows/comment-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: PR Comment
22

33
on:
44
workflow_run:
5-
workflows: [Test]
5+
workflows: [ Test ]
66
types:
77
- completed
88

99
jobs:
1010
test:
11-
uses: bgd-labs/github-workflows/.github/workflows/comment.yml@main
11+
uses: bgd-labs/github-workflows/.github/workflows/comment.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main

.github/workflows/cron.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
- main
1515
workflow_dispatch:
1616

17+
1718
jobs:
1819
check-proposals:
1920
name: Check if library is up to date
@@ -24,17 +25,17 @@ jobs:
2425
pull-requests: write
2526
contents: write
2627
steps:
27-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
2829
with:
2930
submodules: recursive
3031
fetch-depth: 0
3132

3233
- name: Install Foundry
33-
uses: foundry-rs/foundry-toolchain@v1
34+
uses: foundry-rs/foundry-toolchain@362aa1be8f31305295acb1032271acd5e9b99312 # pin@v1
3435
with:
3536
version: nightly
3637

37-
- uses: actions/setup-node@v4
38+
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
3839
with:
3940
node-version-file: .nvmrc
4041
cache: "yarn"
@@ -57,7 +58,7 @@ jobs:
5758
RPC_SCROLL: ${{ secrets.RPC_SCROLL }}
5859

5960
- name: Create Pull Request
60-
uses: peter-evans/create-pull-request@00897e0bc2ceba9f86c9b0fda8429107112e6fa5
61+
uses: peter-evans/create-pull-request@00897e0bc2ceba9f86c9b0fda8429107112e6fa5 # pin@00897e0bc2ceba9f86c9b0fda8429107112e6fa5
6162
with:
6263
author: Cache-bot <[email protected]>
6364
committer: Cache-bot <[email protected]>
@@ -68,7 +69,7 @@ jobs:
6869
- name: Post to a Slack channel
6970
id: slack
7071
if: failure()
71-
uses: slackapi/[email protected]
72+
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # pin@v1.24.0
7273
with:
7374
# Slack channel id, channel name, or user id to post message.
7475
# See also: https://api.slack.com/methods/chat.postMessage#channels

.github/workflows/release-please.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
name: release-please
1111
jobs:
1212
test-node:
13-
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main
13+
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
1414
secrets: inherit
1515

1616
release-please:
@@ -19,13 +19,13 @@ jobs:
1919
outputs:
2020
releaseCreated: ${{ steps.release.outputs.release_created }}
2121
steps:
22-
- uses: googleapis/[email protected]
22+
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # pin@v4.1.3
2323
id: release
2424
with:
2525
release-type: node
2626

2727
release-node:
28-
uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main
28+
uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
2929
if: ${{ needs.release-please.outputs.releaseCreated }}
3030
needs: release-please
3131
secrets:

.github/workflows/test-release-alpha.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ concurrency:
77
on:
88
pull_request:
99

10+
1011
jobs:
1112
test-solidity:
12-
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main
13+
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
1314
secrets: inherit
1415
test-js:
15-
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main
16+
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
1617
if: github.event.pull_request.head.repo.full_name == github.repository
1718
secrets: inherit
1819
pkg-size-report:
@@ -23,21 +24,21 @@ jobs:
2324

2425
steps:
2526
- name: Checkout
26-
uses: actions/checkout@v3
27+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
2728

2829
- name: Setup Node.js
29-
uses: actions/setup-node@v4
30+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
3031
with:
3132
node-version-file: .nvmrc
3233
cache: "yarn"
3334

3435
- name: Package size report
35-
uses: pkg-size/action@v1
36+
uses: pkg-size/action@a637fb0897b6f14f18e776d8c3dbccb34a1ad27b # pin@v1
3637
env:
3738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3839
release-node-alpha:
3940
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
40-
uses: bgd-labs/github-workflows/.github/workflows/release-node-alpha.yml@main
41+
uses: bgd-labs/github-workflows/.github/workflows/release-node-alpha.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
4142
needs:
4243
- test-solidity
4344
- test-js

0 commit comments

Comments
 (0)