Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

ci: pin every GitHub Action to a commit SHA (#2979)

Hector Ventura73411043e154
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d66ee458c2..6eab5a47ca 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,9 +39,9 @@ jobs:
matrix:
shard: [1, 2, 3, 4]
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- - uses: actions/[email protected]
+ - uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
java-version: '25'
distribution: 'temurin'
@@ -51,7 +51,7 @@ jobs:
# Restore on every shard; save from shard 1 only. With a combined cache step
# all four shards would race the same save key: one wins, three spend
# post-job time reserving-then-failing plus redundant multi-hundred-MB uploads.
- - uses: actions/cache/[email protected]
+ - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('pom.xml') }}
@@ -98,7 +98,7 @@ jobs:
# restore-keys prefix for the bulk, and re-downloads its delta on each re-run
# rather than caching it. pom.xml changed 21 times in 30 days, so that is a
# small minority of PRs paying a small delta.
- - uses: actions/cache/[email protected]
+ - uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
if: always() && matrix.shard == 1 && github.event_name == 'push'
with:
path: ~/.m2/repository
@@ -106,7 +106,7 @@ jobs:
- name: Upload shard manifest and results
if: always()
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: shard-${{ matrix.shard }}
path: |
@@ -132,7 +132,7 @@ jobs:
echo "shard matrix concluded: ${{ needs.test.result }}"
exit 1
- - uses: actions/download-artifact@v8
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: shard-*
path: shards
diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml
index d1f6e0d3f5..9c57e18bef 100644
--- a/.github/workflows/compatibility.yml
+++ b/.github/workflows/compatibility.yml
@@ -93,7 +93,7 @@ jobs:
runs-on: ubuntu-24.04-arm
timeout-minutes: 5
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: |
compatibility-tests
@@ -118,7 +118,7 @@ jobs:
- arch: amd64
runner: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: graalvm/setup-graalvm@5298d94fb55a4f185c602eeac5de1b553882abe2 # v1
with:
@@ -140,7 +140,7 @@ jobs:
# arch-neutral, so only classifier-based natives re-download), and
# `-Dnative` pulls native-image plugins that ci.yml's `mvn test` never
# fetches. Expect most of the ~66s of cold resolution back, not all of it.
- - uses: actions/cache/[email protected]
+ - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('pom.xml') }}
@@ -178,7 +178,7 @@ jobs:
run: gzip /tmp/floci-native-image.tar
- name: Upload native floci image
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: floci-native-image-${{ matrix.arch }}
path: /tmp/floci-native-image.tar.gz
@@ -212,7 +212,7 @@ jobs:
steps:
- name: Download native floci image
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: floci-native-image-${{ matrix.arch }}
path: /tmp
@@ -244,7 +244,7 @@ jobs:
run: timeout 60 bash -c 'until curl -sf http://localhost:4566/ >/dev/null 2>&1; do sleep 1; done'
- name: Checkout repository
- uses: actions/[email protected]
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: |
compatibility-tests
@@ -318,7 +318,7 @@ jobs:
- name: Upload test results
if: always() && steps.tests.outcome != 'skipped'
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: compat-results-${{ matrix.test }}
path: test-results/
diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml
index 3e9944d6ad..d3ea3552c4 100644
--- a/.github/workflows/conventional-commits.yml
+++ b/.github/workflows/conventional-commits.yml
@@ -27,7 +27,7 @@ jobs:
PATTERN: '^(feat|fix|perf|revert|docs|style|chore|refactor|test|build|ci)(\([-a-zA-Z0-9_.,]+\))?!?: .{1,}'
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
diff --git a/.github/workflows/doc-style.yml b/.github/workflows/doc-style.yml
index 33372349f7..381ec62604 100644
--- a/.github/workflows/doc-style.yml
+++ b/.github/workflows/doc-style.yml
@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
diff --git a/.github/workflows/docs-actions.yml b/.github/workflows/docs-actions.yml
index 2484b20784..b539d9972f 100644
--- a/.github/workflows/docs-actions.yml
+++ b/.github/workflows/docs-actions.yml
@@ -39,10 +39,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.x"
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index fe2a2a1aaf..0f02cd892e 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -23,10 +23,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
- uses: actions/setup-python@v7
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.x"
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 08e038eeb3..edc979f835 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -48,7 +48,7 @@ jobs:
timeout-minutes: 45
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
@@ -70,7 +70,7 @@ jobs:
# and restoring before `versions:set` keeps it that way. Nothing is saved:
# ci.yml is the single writer, and a save here would recreate the mutated-
# key garbage described above.
- - uses: actions/cache/[email protected]
+ - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('pom.xml') }}
@@ -82,7 +82,7 @@ jobs:
- name: Build native executable
run: mvn clean package -Dnative -DskipTests -B -Dquarkus.native.additional-build-args-append="-march=x86-64-v2"
- - uses: actions/upload-artifact@v7
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: native-amd64
path: |
@@ -100,7 +100,7 @@ jobs:
timeout-minutes: 45
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
@@ -122,7 +122,7 @@ jobs:
# and restoring before `versions:set` keeps it that way. Nothing is saved:
# ci.yml is the single writer, and a save here would recreate the mutated-
# key garbage described above.
- - uses: actions/cache/[email protected]
+ - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('pom.xml') }}
@@ -134,7 +134,7 @@ jobs:
- name: Build native executable
run: mvn clean package -Dnative -DskipTests -B
- - uses: actions/upload-artifact@v7
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: native-arm64
path: |
@@ -152,16 +152,16 @@ jobs:
timeout-minutes: 30
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
- - uses: actions/download-artifact@v8
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: native-amd64
path: native/amd64/
- - uses: actions/download-artifact@v8
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: native-arm64
path: native/arm64/
@@ -188,13 +188,13 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Configure AWS credentials
- uses: aws-actions/[email protected]
+ uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
- name: Login to Amazon ECR Public
- uses: aws-actions/amazon-ecr-login@v2
+ uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
with:
registry-type: public
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index bd40761379..9db6be46fb 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -37,7 +37,7 @@ jobs:
timeout-minutes: 45
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: graalvm/setup-graalvm@5298d94fb55a4f185c602eeac5de1b553882abe2 # v1
with:
@@ -49,7 +49,7 @@ jobs:
- name: Build native executable
run: mvn clean package -Dnative -DskipTests -B -Dquarkus.native.additional-build-args-append="-march=x86-64-v2"
- - uses: actions/upload-artifact@v7
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: native-amd64
path: |
@@ -66,7 +66,7 @@ jobs:
timeout-minutes: 45
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: graalvm/setup-graalvm@5298d94fb55a4f185c602eeac5de1b553882abe2 # v1
with:
@@ -78,7 +78,7 @@ jobs:
- name: Build native executable
run: mvn clean package -Dnative -DskipTests -B
- - uses: actions/upload-artifact@v7
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: native-arm64
path: |
@@ -96,7 +96,7 @@ jobs:
timeout-minutes: 30
steps:
- - uses: actions/[email protected]
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Extract version
id: version
@@ -110,12 +110,12 @@ jobs:
id: source_date
run: echo "epoch=$(git log -1 --pretty=%ct)" >> "$GITHUB_OUTPUT"
- - uses: actions/download-artifact@v8
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: native-amd64
path: native/amd64/
- - uses: actions/download-artifact@v8
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: native-arm64
path: native/arm64/
diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml
index 1398727373..5db0054e2d 100644
--- a/.github/workflows/welcome.yml
+++ b/.github/workflows/welcome.yml
@@ -22,7 +22,7 @@ jobs:
# Block scalars below are literal (|), not folded (>): folding joins Markdown
# bullets onto one line. One paragraph per line, because GitHub renders a
# single newline in a comment as a hard line break.
- - uses: actions/[email protected]
+ - uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}