Skip to content

Commit 1212ae0

Browse files
marko-bekhtayrodiere
authored andcommitted
Use SHA instead of versions in GH actions
1 parent 6124b0f commit 1212ae0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2121

2222
- name: Set up JDK 21
23-
uses: actions/setup-java@v4
23+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # 4.7.0
2424
with:
2525
distribution: temurin
2626
java-version: 21

.github/workflows/deploy.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
runs-on: ubuntu-latest
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2929

3030
- name: Set up JDK 21
31-
uses: actions/setup-java@v4
31+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # 4.7.0
3232
with:
3333
distribution: temurin
3434
java-version: 21
@@ -37,17 +37,17 @@ jobs:
3737
run: ./mvnw -B clean verify
3838

3939
- name: Set up Helm
40-
uses: azure/setup-helm@v4.0.0
40+
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # 4.2.0
4141
with:
4242
version: 'v3.13.3'
4343

4444
- name: Install CLI tools from OpenShift Mirror
45-
uses: redhat-actions/openshift-tools-installer@v1
45+
uses: redhat-actions/openshift-tools-installer@144527c7d98999f2652264c048c7a9bd103f8a82 # 1.13.1
4646
with:
4747
oc: "latest"
4848

4949
- name: Log in to OpenShift
50-
uses: redhat-actions/oc-login@v1
50+
uses: redhat-actions/oc-login@5eb45e848b168b6bf6b8fe7f1561003c12e3c99d # 1.3
5151
with:
5252
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_INFRA_PROD }}
5353
openshift_token: ${{ secrets.OPENSHIFT_TOKEN_INFRA_PROD }}
@@ -66,7 +66,7 @@ jobs:
6666
oc get imagestream -o json | jq -r '.items[0].status.publicDockerImageRepository' | awk -F"[/]" '{print $1}' >> "$GITHUB_OUTPUT"
6767
6868
- name: Log in to OpenShift Container Registry
69-
uses: docker/login-action@v3
69+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
7070
with:
7171
registry: ${{ steps.oc-registry.outputs.OC_REGISTRY_URL }}
7272
username: ignored

0 commit comments

Comments
 (0)