Pin github actions by hash (#12140)
This commit is contained in:
parent
080ad9452a
commit
d8f1ed9a04
|
@ -31,13 +31,13 @@ jobs:
|
||||||
run: git config --system core.longpaths true
|
run: git config --system core.longpaths true
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Free disk space
|
- name: Free disk space
|
||||||
run: .github/scripts/gha-free-disk-space.sh
|
run: .github/scripts/gha-free-disk-space.sh
|
||||||
|
|
||||||
- name: Set up JDK for running Gradle
|
- name: Set up JDK for running Gradle
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version-file: .java-version
|
java-version-file: .java-version
|
||||||
|
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
prepare-patch-release:
|
prepare-patch-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
if [[ ! $GITHUB_REF_NAME =~ ^release/v[0-9]+\.[0-9]+\.x$ ]]; then
|
if [[ ! $GITHUB_REF_NAME =~ ^release/v[0-9]+\.[0-9]+\.x$ ]]; then
|
||||||
|
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
prereqs:
|
prereqs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Verify prerequisites
|
- name: Verify prerequisites
|
||||||
run: |
|
run: |
|
||||||
|
@ -25,7 +25,7 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- prereqs
|
- prereqs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Create release branch
|
- name: Create release branch
|
||||||
run: |
|
run: |
|
||||||
|
@ -78,7 +78,7 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- prereqs
|
- prereqs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Set environment variables
|
- name: Set environment variables
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -14,12 +14,12 @@ jobs:
|
||||||
packages: write
|
packages: write
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
|
||||||
|
|
||||||
- name: Login to GitHub container registry
|
- name: Login to GitHub container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
run: echo "TS=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
|
run: echo "TS=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Push to GitHub packages
|
- name: Push to GitHub packages
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
file: benchmark-overhead/Dockerfile-petclinic-base
|
file: benchmark-overhead/Dockerfile-petclinic-base
|
||||||
|
|
|
@ -13,19 +13,19 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Free disk space
|
- name: Free disk space
|
||||||
run: .github/scripts/gha-free-disk-space.sh
|
run: .github/scripts/gha-free-disk-space.sh
|
||||||
|
|
||||||
- name: Set up JDK for running Gradle
|
- name: Set up JDK for running Gradle
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version-file: .java-version
|
java-version-file: .java-version
|
||||||
|
|
||||||
- name: Login to GitHub package registry
|
- name: Login to GitHub package registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
|
|
@ -13,19 +13,19 @@ jobs:
|
||||||
publishLinux:
|
publishLinux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Free disk space
|
- name: Free disk space
|
||||||
run: .github/scripts/gha-free-disk-space.sh
|
run: .github/scripts/gha-free-disk-space.sh
|
||||||
|
|
||||||
- name: Set up JDK for running Gradle
|
- name: Set up JDK for running Gradle
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version-file: .java-version
|
java-version-file: .java-version
|
||||||
|
|
||||||
- name: Login to GitHub package registry
|
- name: Login to GitHub package registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
@ -49,16 +49,16 @@ jobs:
|
||||||
- name: Support long paths
|
- name: Support long paths
|
||||||
run: git config --system core.longpaths true
|
run: git config --system core.longpaths true
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Set up JDK for running Gradle
|
- name: Set up JDK for running Gradle
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version-file: .java-version
|
java-version-file: .java-version
|
||||||
|
|
||||||
- name: Login to GitHub package registry
|
- name: Login to GitHub package registry
|
||||||
uses: azure/docker-login@v2
|
uses: azure/docker-login@15c4aadf093404726ab2ff205b2cdd33fa6d054c # v2
|
||||||
with:
|
with:
|
||||||
login-server: ghcr.io
|
login-server: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
|
Loading…
Reference in New Issue