Skip to content

Commit e6726f4

Browse files
committed
Pin actions to a full length commit SHA (closes #6)
GitHub recommends to pin GitHub actions to a full length commit SHA. Because those version upgrades are now difficult to track, dependabot has also been activated in order to handle most of the process. Note that this also helps preventing scheduled GitHub Actions from becoming disabled when there is no activity for X consecutive days.
1 parent 06aab96 commit e6726f4

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
day: "saturday"

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
runs-on: ${{ matrix.os }}
2121
steps:
2222
- name: set up Java 11
23-
uses: actions/setup-java@v3
23+
uses: actions/setup-java@2c7a4878f5d120bd643426d54ae1209b29cc01a3 # v3.4.1
2424
with:
2525
distribution: 'temurin'
2626
java-version: '11'
2727
- name: asdf_plugin_test
28-
uses: asdf-vm/actions/plugin-test@v1
28+
uses: asdf-vm/actions/plugin-test@707e84f3ee349548310aeabdad0dd3bfcb9b69fa # v1.1.0
2929
with:
3030
command: quarkus --help

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
1515

1616
- name: Install asdf dependencies
17-
uses: asdf-vm/actions/install@v1
17+
uses: asdf-vm/actions/install@707e84f3ee349548310aeabdad0dd3bfcb9b69fa # v1.1.0
1818

1919
- name: Run ShellCheck
2020
run: scripts/shellcheck.bash
@@ -23,10 +23,10 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
2727

2828
- name: Install asdf dependencies
29-
uses: asdf-vm/actions/install@v1
29+
uses: asdf-vm/actions/install@707e84f3ee349548310aeabdad0dd3bfcb9b69fa # v1.1.0
3030

3131
- name: List file to shfmt
3232
run: shfmt -f .

0 commit comments

Comments
 (0)