Skip to content

Commit ec8d814

Browse files
authored
Merge pull request #20 from fac/devp/pin-action-shas
Pin GitHub Actions to specific commit SHAs
2 parents 81d77bf + d194d94 commit ec8d814

5 files changed

Lines changed: 31 additions & 4 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/*
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/linter.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
linter:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1515
with:
1616
ref: ${{ github.head_ref }}
1717
fetch-depth: 0 # Full history to get a proper list of changed files within `super-linter`
1818

1919
- name: Lint Code Base
20-
uses: github/super-linter@v4
20+
uses: github/super-linter@985ef206aaca4d560cb9ee2af2b42ba44adc1d55 # v4.10.0
2121
env:
2222
VALIDATE_ALL_CODEBASE: false
2323
VALIDATE_BASH: true

‎.github/workflows/shellcheck.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ jobs:
55
name: runner / shellcheck
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
99
- name: shellcheck
10-
uses: reviewdog/action-shellcheck@v1
10+
uses: reviewdog/action-shellcheck@4c07458293ac342d477251099501a718ae5ef86e # v1.32.0
1111
with:
1212
fail_on_error: true
1313
reporter: github-pr-review

‎.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)