Skip to content

Commit 651e0df

Browse files
authored
GitHub Actions: Pin actions to SHA hashes (#156)
Add dependabot checks for GitHub Actions
1 parent d509857 commit 651e0df

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
cooldown:
13+
default-days: 7 # Wait 7 days after publication

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # actions/checkout@v6 see https://github.com/actions/checkout/releases/tag/v6
1313
with:
1414
fetch-depth: 0 # fetch everything
1515
- name: Set up Ruby
16-
uses: ruby/setup-ruby@v1
16+
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # ruby/setup-ruby@v1 see https://github.com/ruby/setup-ruby/tree/v1
1717
with:
1818
ruby-version: 3.4
1919
- name: Install dependencies

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
4444

4545
steps:
46-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # actions/checkout@v6 see https://github.com/actions/checkout/releases/tag/v6
4747
- name: Set up Ruby
48-
uses: ruby/setup-ruby@v1
48+
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # ruby/setup-ruby@v1 see https://github.com/ruby/setup-ruby/tree/v1
4949
with:
5050
ruby-version: ${{ matrix.ruby-version }}
5151
- name: Install dependencies

0 commit comments

Comments
 (0)