Skip to content

Commit

Permalink
ci(deps): Enable dependabot for actions (#617)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
boredland authored Oct 7, 2024
1 parent 0df9b4b commit 755ddaa
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 22 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ updates:
- "/ui/"
schedule:
interval: "weekly"

- package-ecosystem: "gitsubmodule" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"

12 changes: 6 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version-file: .nvmrc
cache: "yarn"
Expand All @@ -49,10 +49,10 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version-file: .nvmrc
cache: "yarn"
Expand All @@ -62,7 +62,7 @@ jobs:

- name: Cache Restore
id: cache
uses: actions/cache/restore@v4
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # pin@v4
with:
path: cache
key: ${{ runner.os }}-verification-${{ hashFiles('safe.csv') }}-${{ github.sha }}
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Cache Save
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: actions/cache/save@v4
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # pin@v4
with:
path: cache
key: ${{ runner.os }}-verification-${{ hashFiles('safe.csv') }}-${{ github.sha }}
4 changes: 2 additions & 2 deletions .github/workflows/comment-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: PR Comment

on:
workflow_run:
workflows: [Test]
workflows: [ Test ]
types:
- completed

jobs:
test:
uses: bgd-labs/github-workflows/.github/workflows/comment.yml@main
uses: bgd-labs/github-workflows/.github/workflows/comment.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
11 changes: 6 additions & 5 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- main
workflow_dispatch:


jobs:
check-proposals:
name: Check if library is up to date
Expand All @@ -24,17 +25,17 @@ jobs:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
with:
submodules: recursive
fetch-depth: 0

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: foundry-rs/foundry-toolchain@362aa1be8f31305295acb1032271acd5e9b99312 # pin@v1
with:
version: nightly

- uses: actions/setup-node@v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version-file: .nvmrc
cache: "yarn"
Expand All @@ -57,7 +58,7 @@ jobs:
RPC_SCROLL: ${{ secrets.RPC_SCROLL }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@00897e0bc2ceba9f86c9b0fda8429107112e6fa5
uses: peter-evans/create-pull-request@00897e0bc2ceba9f86c9b0fda8429107112e6fa5 # pin@00897e0bc2ceba9f86c9b0fda8429107112e6fa5
with:
author: Cache-bot <[email protected]>
committer: Cache-bot <[email protected]>
Expand All @@ -68,7 +69,7 @@ jobs:
- name: Post to a Slack channel
id: slack
if: failure()
uses: slackapi/[email protected]
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # pin@v1.24.0
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
name: release-please
jobs:
test-node:
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
secrets: inherit

release-please:
Expand All @@ -19,13 +19,13 @@ jobs:
outputs:
releaseCreated: ${{ steps.release.outputs.release_created }}
steps:
- uses: googleapis/[email protected]
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # pin@v4.1.3
id: release
with:
release-type: node

release-node:
uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main
uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
if: ${{ needs.release-please.outputs.releaseCreated }}
needs: release-please
secrets:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/test-release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ concurrency:
on:
pull_request:


jobs:
test-solidity:
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
secrets: inherit
test-js:
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
if: github.event.pull_request.head.repo.full_name == github.repository
secrets: inherit
pkg-size-report:
Expand All @@ -23,21 +24,21 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version-file: .nvmrc
cache: "yarn"

- name: Package size report
uses: pkg-size/action@v1
uses: pkg-size/action@a637fb0897b6f14f18e776d8c3dbccb34a1ad27b # pin@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-node-alpha:
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
uses: bgd-labs/github-workflows/.github/workflows/release-node-alpha.yml@main
uses: bgd-labs/github-workflows/.github/workflows/release-node-alpha.yml@130a99a60ad2c4944ab6114105d86fcbb841af77 # pin@main
needs:
- test-solidity
- test-js
Expand Down

0 comments on commit 755ddaa

Please sign in to comment.