Skip to content

Commit 4a2bfd8

Browse files
committed
Update workflows to replace target checkout action with actions/checkout@v6
- Replaced the custom target checkout action with actions/checkout@v6 across multiple workflow files to enhance compatibility and maintainability. - Introduced an environment variable CHECKOUT_REF to standardize the reference used during the checkout process, improving consistency across workflows.
1 parent a557fd4 commit 4a2bfd8

25 files changed

+162
-63
lines changed

.github/workflows/approval-gate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
commit-message: ${{ steps.get-message.outputs.commit_message }}
3232
steps:
3333
- name: Checkout repository
34-
uses: ./.github/actions/target-checkout
34+
uses: actions/checkout@v6
3535
with:
3636
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3737
- name: Get commit SHA

.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ on:
1010
splunk_image_repository_tag:
1111
description: 'Splunk AL2023-based Docker Image repository and tag (e.g. repository-name:tag)'
1212
required: true
13+
env:
14+
CHECKOUT_REF: ${{ github.ref }}
1315
jobs:
1416
check-formating:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: ./.github/actions/target-checkout
19+
- uses: actions/checkout@v6
20+
with:
21+
ref: ${{ env.CHECKOUT_REF }}
1822
- name: Dotenv Action
1923
id: dotenv
2024
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -30,7 +34,9 @@ jobs:
3034
runs-on: ubuntu-latest
3135
needs: check-formating
3236
steps:
33-
- uses: ./.github/actions/target-checkout
37+
- uses: actions/checkout@v6
38+
with:
39+
ref: ${{ env.CHECKOUT_REF }}
3440
- name: Dotenv Action
3541
id: dotenv
3642
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -67,7 +73,9 @@ jobs:
6773
- name: Set up cosign
6874
uses: sigstore/cosign-installer@main
6975

70-
- uses: ./.github/actions/target-checkout
76+
- uses: actions/checkout@v6
77+
with:
78+
ref: ${{ env.CHECKOUT_REF }}
7179
- name: Dotenv Action
7280
id: dotenv
7381
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -148,7 +156,9 @@ jobs:
148156
GRAVITON_TESTING: "true"
149157
steps:
150158
- name: Chekcout code
151-
uses: ./.github/actions/target-checkout
159+
uses: actions/checkout@v6
160+
with:
161+
ref: ${{ env.CHECKOUT_REF }}
152162
- name: Set Test Cluster Name
153163
id: set-cluster-name
154164
uses: ./.github/actions/set-cluster-name

.github/workflows/arm-AL2023-int-test-workflow.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
splunk_image_repository_tag:
1111
description: 'Splunk AL2023-based Docker Image repository and tag (e.g. repository-name:tag)'
1212
required: true
13+
env:
14+
CHECKOUT_REF: ${{ github.ref }}
1315
jobs:
1416
build-operator-image-arm-al2023:
1517
runs-on: ubuntu-latest
@@ -19,7 +21,9 @@ jobs:
1921
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
2022
S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
2123
steps:
22-
- uses: ./.github/actions/target-checkout
24+
- uses: actions/checkout@v6
25+
with:
26+
ref: ${{ env.CHECKOUT_REF }}
2327
- name: Dotenv Action
2428
id: dotenv
2529
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -101,7 +105,9 @@ jobs:
101105
echo "CLUSTER_NODES=2" >> $GITHUB_ENV
102106
fi
103107
- name: Checkcout code
104-
uses: ./.github/actions/target-checkout
108+
uses: actions/checkout@v6
109+
with:
110+
ref: ${{ env.CHECKOUT_REF }}
105111
- name: Set Test Cluster Name
106112
id: set-cluster-name
107113
uses: ./.github/actions/set-cluster-name

.github/workflows/arm-RHEL-build-test-push-workflow.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
splunk_image_repository_tag:
1111
description: 'Splunk RHEL-based Docker Image repository and tag (e.g. repository-name:tag)'
1212
required: true
13+
env:
14+
CHECKOUT_REF: ${{ github.ref }}
1315
jobs:
1416
build-operator-image-arm-rhel:
1517
runs-on: ubuntu-latest
@@ -19,7 +21,9 @@ jobs:
1921
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
2022
S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
2123
steps:
22-
- uses: ./.github/actions/target-checkout
24+
- uses: actions/checkout@v6
25+
with:
26+
ref: ${{ env.CHECKOUT_REF }}
2327
- name: Dotenv Action
2428
id: dotenv
2529
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -102,7 +106,9 @@ jobs:
102106
echo "CLUSTER_NODES=2" >> $GITHUB_ENV
103107
fi
104108
- name: Checkcout code
105-
uses: ./.github/actions/target-checkout
109+
uses: actions/checkout@v6
110+
with:
111+
ref: ${{ env.CHECKOUT_REF }}
106112
- name: Set Test Cluster Name
107113
id: set-cluster-name
108114
uses: ./.github/actions/set-cluster-name

.github/workflows/arm-RHEL-int-test-workflow.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
splunk_image_repository_tag:
1111
description: 'Splunk RHEL-based Docker Image repository and tag (e.g. repository-name:tag)'
1212
required: true
13+
env:
14+
CHECKOUT_REF: ${{ github.ref }}
1315
jobs:
1416
build-operator-image-arm-rhel:
1517
runs-on: ubuntu-latest
@@ -19,7 +21,9 @@ jobs:
1921
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
2022
S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
2123
steps:
22-
- uses: ./.github/actions/target-checkout
24+
- uses: actions/checkout@v6
25+
with:
26+
ref: ${{ env.CHECKOUT_REF }}
2327
- name: Dotenv Action
2428
id: dotenv
2529
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -101,7 +105,9 @@ jobs:
101105
echo "CLUSTER_NODES=2" >> $GITHUB_ENV
102106
fi
103107
- name: Checkcout code
104-
uses: ./.github/actions/target-checkout
108+
uses: actions/checkout@v6
109+
with:
110+
ref: ${{ env.CHECKOUT_REF }}
105111
- name: Set Test Cluster Name
106112
id: set-cluster-name
107113
uses: ./.github/actions/set-cluster-name

.github/workflows/arm-Ubuntu-build-test-push-workflow.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ on:
1010
splunk_image_repository_tag:
1111
description: 'Splunk Ubuntu-based Docker Image repository and tag (e.g. repository-name:tag)'
1212
required: true
13+
env:
14+
CHECKOUT_REF: ${{ github.ref }}
1315
jobs:
1416
check-formating:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: ./.github/actions/target-checkout
19+
- uses: actions/checkout@v6
20+
with:
21+
ref: ${{ env.CHECKOUT_REF }}
1822
- name: Dotenv Action
1923
id: dotenv
2024
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -30,7 +34,9 @@ jobs:
3034
runs-on: ubuntu-latest
3135
needs: check-formating
3236
steps:
33-
- uses: ./.github/actions/target-checkout
37+
- uses: actions/checkout@v6
38+
with:
39+
ref: ${{ env.CHECKOUT_REF }}
3440
- name: Dotenv Action
3541
id: dotenv
3642
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -67,7 +73,9 @@ jobs:
6773
- name: Set up cosign
6874
uses: sigstore/cosign-installer@main
6975

70-
- uses: ./.github/actions/target-checkout
76+
- uses: actions/checkout@v6
77+
with:
78+
ref: ${{ env.CHECKOUT_REF }}
7179
- name: Dotenv Action
7280
id: dotenv
7381
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -148,7 +156,9 @@ jobs:
148156
GRAVITON_TESTING: "true"
149157
steps:
150158
- name: Chekcout code
151-
uses: ./.github/actions/target-checkout
159+
uses: actions/checkout@v6
160+
with:
161+
ref: ${{ env.CHECKOUT_REF }}
152162
- name: Set Test Cluster Name
153163
id: set-cluster-name
154164
uses: ./.github/actions/set-cluster-name

.github/workflows/arm-Ubuntu-int-test-workflow.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
splunk_image_repository_tag:
1111
description: 'Splunk Ubuntu-based Docker Image repository and tag (e.g. repository-name:tag)'
1212
required: true
13+
env:
14+
CHECKOUT_REF: ${{ github.ref }}
1315
jobs:
1416
build-operator-image-arm-ubuntu:
1517
runs-on: ubuntu-latest
@@ -19,7 +21,9 @@ jobs:
1921
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
2022
S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
2123
steps:
22-
- uses: ./.github/actions/target-checkout
24+
- uses: actions/checkout@v6
25+
with:
26+
ref: ${{ env.CHECKOUT_REF }}
2327
- name: Dotenv Action
2428
id: dotenv
2529
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
@@ -101,7 +105,9 @@ jobs:
101105
echo "CLUSTER_NODES=2" >> $GITHUB_ENV
102106
fi
103107
- name: Checkcout code
104-
uses: ./.github/actions/target-checkout
108+
uses: actions/checkout@v6
109+
with:
110+
ref: ${{ env.CHECKOUT_REF }}
105111
- name: Set Test Cluster Name
106112
id: set-cluster-name
107113
uses: ./.github/actions/set-cluster-name

.github/workflows/automated-release-workflow.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
enterprise_version:
1717
description: 'Enterprise Image Version. Should match with Tag on Splunk Enterprise Docker Repo'
1818
required: true
19+
env:
20+
CHECKOUT_REF: ${{ github.ref }}
1921
jobs:
2022
automated-release:
2123
name: Automated Release Workflow
@@ -31,8 +33,9 @@ jobs:
3133
uses: sigstore/cosign-installer@main
3234

3335
- name: Checkout code
34-
uses: ./.github/actions/target-checkout
35-
36+
uses: actions/checkout@v6
37+
with:
38+
ref: ${{ env.CHECKOUT_REF }}
3639
- name: Deep Fetch
3740
run: |
3841
git fetch --prune --unshallow

.github/workflows/bias-language-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ permissions:
44
packages: write
55
pull-requests: write
66
on: [push]
7+
env:
8+
CHECKOUT_REF: ${{ github.ref }}
79
jobs:
810
biased_lang:
911
runs-on: ubuntu-latest
1012
name: Detecting Biased Language
1113
steps:
12-
- uses: ./.github/actions/target-checkout
14+
- uses: actions/checkout@v6
15+
with:
16+
ref: ${{ env.CHECKOUT_REF }}
1317
- id: biased-lang-linter
1418
uses: splunk/biased-lang-linter@main
1519
continue-on-error: false

.github/workflows/build-test-push-workflow.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ on:
1313
- 'docs/**'
1414
- '*.md'
1515
pull_request:
16-
branches-ignore:
17-
- 'develop'
16+
# branches-ignore:
17+
# - 'develop'
1818
paths-ignore:
1919
- 'docs/**'
2020
- '*.md'
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
needs: approval-gate
3434
steps:
35-
- uses: ./.github/actions/target-checkout
35+
- uses: actions/checkout@v6
3636
with:
3737
ref: ${{ needs.approval-gate.outputs.commit-sha }}
3838
- name: Dotenv Action
@@ -52,7 +52,7 @@ jobs:
5252
- check-formating
5353
- approval-gate
5454
steps:
55-
- uses: ./.github/actions/target-checkout
55+
- uses: actions/checkout@v6
5656
with:
5757
ref: ${{ needs.approval-gate.outputs.commit-sha }}
5858
- name: Dotenv Action
@@ -94,7 +94,7 @@ jobs:
9494
- name: Set up cosign
9595
uses: sigstore/cosign-installer@main
9696

97-
- uses: ./.github/actions/target-checkout
97+
- uses: actions/checkout@v6
9898
with:
9999
ref: ${{ needs.approval-gate.outputs.commit-sha }}
100100
- name: Dotenv Action
@@ -155,7 +155,7 @@ jobs:
155155
steps:
156156
- name: Set up cosign
157157
uses: sigstore/cosign-installer@main
158-
- uses: ./.github/actions/target-checkout
158+
- uses: actions/checkout@v6
159159
with:
160160
ref: ${{ needs.approval-gate.outputs.commit-sha }}
161161
- name: Dotenv Action
@@ -233,7 +233,7 @@ jobs:
233233
DEPLOYMENT_TYPE: ""
234234
steps:
235235
- name: Chekcout code
236-
uses: ./.github/actions/target-checkout
236+
uses: actions/checkout@v6
237237
with:
238238
ref: ${{ needs.approval-gate.outputs.commit-sha }}
239239
- name: Set Test Cluster Name

0 commit comments

Comments
 (0)