Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Commit e78bd09

Browse files
authored
Merge pull request #14 from fac/devp/pin-action-shas
Pin GitHub Actions to specific commit SHAs
2 parents 90bc419 + cddfc0f commit e78bd09

5 files changed

Lines changed: 37 additions & 10 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
rebase-strategy: disabled
8+
open-pull-requests-limit: 10
9+
cooldown:
10+
default-days: 7
11+
exclude:
12+
- fac/*

‎.github/workflows/bats.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Setup BATS
9-
uses: mig4/setup-bats@v1
9+
uses: mig4/setup-bats@af9a00deb21b5d795cabfeaa8d9060410377686d # v1.2.0
1010
with:
1111
bats-version: 1.3.0
1212

13-
- uses: actions/checkout@v1
14-
- uses: ruby/setup-ruby@v1 # .ruby-version
13+
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
14+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
1515
with:
1616
bundler-cache: true # bundle install
1717

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Check actions have their versions pinned
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/*.yml'
7+
- '.github/workflows/*.yaml'
8+
9+
jobs:
10+
pinact:
11+
uses: fac/shared-workflows/.github/workflows/check_pinned_actions.yml@main

‎.github/workflows/freeagent-gem.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: ruby/setup-ruby@v1 # .ruby-version for ruby setup
15+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
16+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
1717
with:
1818
bundler-cache: true # bundle install and cache
1919

@@ -31,28 +31,28 @@ jobs:
3131
runs-on: ubuntu-latest
3232

3333
steps:
34-
- uses: fac/ruby-gem-setup-credentials-action@v2
34+
- uses: fac/ruby-gem-setup-credentials-action@5f62d5f2f56a11c7422a92f81fbb29af01e1c00f # v2
3535
with:
3636
token: ${{ secrets.github_token }}
3737

3838
# Build the gem package
39-
- uses: actions/checkout@v2
40-
- uses: ruby/setup-ruby@v1
39+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
40+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
4141
with:
4242
bundler-cache: true
4343
- run: bundle exec rake build
4444

4545
# Release production gem version from default branch
4646
- name: Release
4747
if: github.ref == 'refs/heads/main'
48-
uses: fac/ruby-gem-push-action@v2
48+
uses: fac/ruby-gem-push-action@81d77bf568ff6659d7fae0f0c5a036bb0aeacb1a # v2
4949
with:
5050
key: github
5151

5252
# PR branch builds will release pre-release gems
5353
- name: Pre-Release
5454
if: github.ref != 'refs/heads/main'
55-
uses: fac/ruby-gem-push-action@v2
55+
uses: fac/ruby-gem-push-action@81d77bf568ff6659d7fae0f0c5a036bb0aeacb1a # v2
5656
with:
5757
key: github
5858
pre-release: true

‎.pinact.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: 3
2+
ignore_actions:
3+
- name: fac/.*
4+
ref: ^main$

0 commit comments

Comments
 (0)