Skip to content

Commit 86a0eb3

Browse files
authored
ci: pin all GitHub Actions to commit SHAs (#1230)
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
1 parent 7a1dfcc commit 86a0eb3

17 files changed

Lines changed: 72 additions & 71 deletions

‎.github/dependabot.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ updates:
2929
- package-ecosystem: github-actions
3030
directory: "/"
3131
schedule:
32-
interval: weekly
33-
open-pull-requests-limit: 10
32+
interval: daily
33+
cooldown:
34+
default-days: 7 # Quarantine: never a release published the same day
3435
commit-message:
35-
prefix: "chore"
36+
prefix: "chore"

‎.github/workflows/acts-nightly.yaml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ jobs:
1919

2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v7
22+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2323

2424
- name: Set up JDK 17
25-
uses: actions/setup-java@v6
25+
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6
2626
with:
2727
java-version: '17'
2828
distribution: 'temurin'
2929
cache: maven
3030

3131
- name: Clone a2a-itk
32-
uses: actions/checkout@v7
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
3333
with:
3434
repository: a2aproject/a2a-itk
3535
ref: main
3636
path: itk/a2a-itk
3737

3838
- name: Set up Docker Buildx
39-
uses: docker/setup-buildx-action@v4
39+
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
4040

4141
- name: Build itk_service image (GHA layer cache)
42-
uses: docker/build-push-action@v7
42+
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
4343
with:
4444
context: itk/a2a-itk
4545
tags: itk_service:latest
@@ -48,7 +48,7 @@ jobs:
4848
cache-to: type=gha,mode=max,scope=itk_service
4949

5050
- name: Cache launcher peer-SDK checkouts + build outputs
51-
uses: actions/cache@v6
51+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
5252
with:
5353
path: ~/.cache/a2a-itk-launcher
5454
key: itk-launcher-${{ runner.os }}-${{ github.sha }}
@@ -71,7 +71,7 @@ jobs:
7171

7272
- name: Upload ACTS reports
7373
if: always()
74-
uses: actions/upload-artifact@v7
74+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
7575
with:
7676
name: acts-reports-java-nightly
7777
path: itk/acts-report-*.json
@@ -81,7 +81,7 @@ jobs:
8181
retention-days: 30
8282

8383
- name: Upload ACTS Results to Rolling Release
84-
uses: softprops/action-gh-release@v3
84+
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3
8585
with:
8686
# The conformance counterpart of `itk_java.json`, on the same
8787
# permanent tag: `process_acts_results.py` fetches

‎.github/workflows/acts.yaml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@ jobs:
2323

2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v7
26+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2727

2828
- name: Set up JDK 17
29-
uses: actions/setup-java@v6
29+
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6
3030
with:
3131
java-version: '17'
3232
distribution: 'temurin'
3333
cache: maven
3434

3535
- name: Clone a2a-itk
36-
uses: actions/checkout@v7
36+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
3737
with:
3838
repository: a2aproject/a2a-itk
3939
ref: main
4040
path: itk/a2a-itk
4141

4242
- name: Set up Docker Buildx
43-
uses: docker/setup-buildx-action@v4
43+
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4
4444

4545
- name: Build itk_service image (GHA layer cache)
46-
uses: docker/build-push-action@v7
46+
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
4747
with:
4848
context: itk/a2a-itk
4949
tags: itk_service:latest
@@ -52,7 +52,7 @@ jobs:
5252
cache-to: type=gha,mode=max,scope=itk_service
5353

5454
- name: Cache launcher peer-SDK checkouts + build outputs
55-
uses: actions/cache@v6
55+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
5656
with:
5757
path: ~/.cache/a2a-itk-launcher
5858
key: itk-launcher-${{ runner.os }}-${{ github.sha }}
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: Upload ACTS reports
7676
if: always()
77-
uses: actions/upload-artifact@v7
77+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
7878
with:
7979
name: acts-reports-java
8080
path: itk/acts-report-*.json

‎.github/workflows/build-and-test.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- os: windows-latest
2727
java-version: '17'
2828
steps:
29-
- uses: actions/checkout@v7
29+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
3030
- name: Set up JDK ${{ matrix.java-version }}
31-
uses: actions/setup-java@v6
31+
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6
3232
with:
3333
java-version: ${{ matrix.java-version }}
3434
distribution: 'temurin'
@@ -37,7 +37,7 @@ jobs:
3737
run: mvn -B package --file pom.xml -fae ${{ matrix.os == 'windows-latest' && '-DskipDockerTests=true' || '' }}
3838
- name: Upload Test Reports
3939
if: failure()
40-
uses: actions/upload-artifact@v7
40+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
4141
with:
4242
name: surefire-reports-${{ matrix.os }}-java-${{ matrix.java-version }}
4343
path: |
@@ -47,7 +47,7 @@ jobs:
4747
if-no-files-found: warn
4848
- name: Upload Build Logs
4949
if: failure()
50-
uses: actions/upload-artifact@v7
50+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
5151
with:
5252
name: build-logs-${{ matrix.os }}-java-${{ matrix.java-version }}
5353
path: |

‎.github/workflows/build-with-release-profile-run.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Download PR info
36-
uses: actions/download-artifact@v8
36+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
3737
with:
3838
name: pr-info
3939
github-token: ${{ github.token }}
@@ -60,7 +60,7 @@ jobs:
6060
6161
- name: Report pending status to PR
6262
if: steps.pr_info.outputs.pr_sha
63-
uses: actions/github-script@v9
63+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
6464
with:
6565
script: |
6666
await github.rest.repos.createCommitStatus({
@@ -74,7 +74,7 @@ jobs:
7474
});
7575
7676
- name: Checkout PR code
77-
uses: actions/checkout@v7
77+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
7878
with:
7979
ref: ${{ steps.pr_info.outputs.pr_sha }}
8080
# Safe: the job-level if condition restricts this to allow-listed actors
@@ -83,15 +83,15 @@ jobs:
8383
allow-unsafe-pr-checkout: true
8484

8585
- name: Set up JDK 17
86-
uses: actions/setup-java@v6
86+
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6
8787
with:
8888
java-version: '17'
8989
distribution: 'temurin'
9090
cache: maven
9191

9292
# Use secrets to import GPG key
9393
- name: Import GPG key
94-
uses: crazy-max/ghaction-import-gpg@v7
94+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7
9595
with:
9696
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }}
9797
passphrase: ${{ secrets.GPG_SIGNING_PASSPHRASE }}
@@ -146,7 +146,7 @@ jobs:
146146
147147
- name: Report status to PR
148148
if: always() && steps.pr_info.outputs.pr_sha
149-
uses: actions/github-script@v9
149+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
150150
with:
151151
script: |
152152
const state = '${{ job.status }}' === 'success' ? 'success' : 'failure';

‎.github/workflows/build-with-release-profile.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929

3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v7
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
3333

3434
- name: Set up JDK 17
35-
uses: actions/setup-java@v6
35+
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6
3636
with:
3737
java-version: '17'
3838
distribution: 'temurin'
@@ -68,7 +68,7 @@ jobs:
6868
cat pr_info/*
6969
7070
- name: Upload PR info
71-
uses: actions/upload-artifact@v7
71+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
7272
with:
7373
name: pr-info
7474
path: pr_info/

‎.github/workflows/check-site.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v7
12+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1313
- name: Generate Roq Site
14-
uses: quarkiverse/quarkus-roq@v1.1
14+
uses: quarkiverse/quarkus-roq@d0bdb4255f4dcc3ddd218c83f9dd19faa823ac31 # v1.1
1515
with:
1616
site-directory: ./docs/
1717
github-pages: 'false'

‎.github/workflows/cloud-deployment-example.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
timeout-minutes: 30
2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v7
23+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2424
- name: Set up JDK 17
25-
uses: actions/setup-java@v6
25+
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6
2626
with:
2727
java-version: '17'
2828
distribution: 'temurin'

‎.github/workflows/conventional-commits.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: semantic-pull-request
22-
uses: amannn/action-semantic-pull-request@v6.1.1
22+
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
with:

‎.github/workflows/create-github-release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v7
18+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1919
with:
2020
fetch-depth: 0 # Fetch all history for changelog generation
2121

@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Generate release notes
3131
id: release_notes
32-
uses: actions/github-script@v9
32+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
3333
with:
3434
github-token: ${{ secrets.GITHUB_TOKEN }}
3535
script: |
@@ -87,7 +87,7 @@ jobs:
8787
return releaseNotes;
8888
8989
- name: Create GitHub Release
90-
uses: actions/github-script@v9
90+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
9191
with:
9292
github-token: ${{ secrets.GITHUB_TOKEN }}
9393
script: |

0 commit comments

Comments
 (0)