Skip to content

Commit adf9054

Browse files
authored
[SECENG-364] Pin GitHub Actions to commit SHAs (#15)
1 parent 7230a9d commit adf9054

4 files changed

Lines changed: 387 additions & 173 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+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
commit-message:
6+
prefix: "[bot] "
7+
cooldown:
8+
default-days: 7
9+
schedule:
10+
interval: "weekly"
11+
day: "wednesday"
12+
time: "11:00"
13+
timezone: "America/Los_Angeles"

.github/workflows/test.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,11 @@ jobs:
1111
uses: actions/checkout@master
1212

1313
- name: Set up Ruby
14-
uses: actions/setup-ruby@v1
14+
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1.301.0
1515
with:
16-
ruby-version: '2.7.x'
16+
ruby-version: '3.4'
1717
bundler-cache: true
1818

19-
- name: Cache bundled gems
20-
uses: actions/cache@v2
21-
with:
22-
path: vendor/bundle
23-
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile.lock') }}
24-
restore-keys: |
25-
${{ runner.os }}-gems-
26-
27-
- name: Install Ruby gems
28-
run: |
29-
bundle config path vendor/bundle
30-
bundle install
31-
3219
- name: Run Rspec
3320
run: |
3421
bundle exec rspec

0 commit comments

Comments
 (0)