Skip to content

Commit 335342d

Browse files
authored
chore(ci): github actions maintenance (#651)
* chore: migrate to new read-only role * chore: bump actions/checkout to v5 * chore: bump setup-github-token to v1 * chore: bump actions/upload-artifact to v4 * chore: remove references to push-gha-metrics-action * chore: bump to ubuntu24 runners
1 parent e37128a commit 335342d

15 files changed

+55
-126
lines changed

.github/workflows/changesets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
# Checkout this repository
1414
- name: Checkout Repo
15-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
15+
uses: actions/checkout@v5
1616
with:
1717
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1818
fetch-depth: 0

.github/workflows/contracts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout sources
16-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
uses: actions/checkout@v5
1717
with:
1818
persist-credentials: false
1919

@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout sources
36-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36+
uses: actions/checkout@v5
3737
with:
3838
persist-credentials: false
3939

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout sources
16-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
uses: actions/checkout@v5
1717
with:
1818
persist-credentials: false
1919

.github/workflows/golangci-lint.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout sources
12-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
12+
uses: actions/checkout@v5
1313
with:
1414
persist-credentials: false
1515
- name: Install Nix
@@ -33,7 +33,7 @@ jobs:
3333
needs: [golangci-lint-version]
3434
steps:
3535
- name: Checkout sources
36-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
36+
uses: actions/checkout@v5
3737
with:
3838
persist-credentials: false
3939
- name: Install Nix
@@ -47,7 +47,7 @@ jobs:
4747
run: cat ./relayer/golangci-lint-relayer-report.xml
4848
- name: Store Golangci lint relayer report artifact
4949
if: always()
50-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: golangci-lint-relayer-report
5353
path: ./relayer/golangci-lint-relayer-report.xml
@@ -61,14 +61,14 @@ jobs:
6161
needs: [golangci-lint-version]
6262
steps:
6363
- name: Checkout sources
64-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
64+
uses: actions/checkout@v5
6565
with:
6666
persist-credentials: false
6767
- name: Setup GitHub Token
6868
id: setup-github-token
69-
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # setup-github-token@0.1.2
69+
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/v1
7070
with:
71-
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
71+
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
7272
aws-lambda-url: ${{ secrets.GATI_RELENG_LAMBDA_URL }}
7373
aws-region: ${{ secrets.QA_AWS_REGION }}
7474
- name: Setup Go with private repo access
@@ -86,7 +86,7 @@ jobs:
8686
run: cat ./ops/golangci-lint-ops-report.xml
8787
- name: Store Golangci lint ops report artifact
8888
if: always()
89-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
89+
uses: actions/upload-artifact@v4
9090
with:
9191
name: golangci-lint-ops-report
9292
path: ./ops/golangci-lint-ops-report.xml
@@ -100,14 +100,14 @@ jobs:
100100
needs: [golangci-lint-version]
101101
steps:
102102
- name: Checkout sources
103-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
103+
uses: actions/checkout@v5
104104
with:
105105
persist-credentials: false
106106
- name: Setup GitHub Token
107107
id: setup-github-token
108-
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # setup-github-token@0.1.2
108+
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/v1
109109
with:
110-
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
110+
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
111111
aws-lambda-url: ${{ secrets.GATI_RELENG_LAMBDA_URL }}
112112
aws-region: ${{ secrets.QA_AWS_REGION }}
113113
- name: Setup Go with private repo access
@@ -125,7 +125,7 @@ jobs:
125125
run: cat ./integration-tests/golangci-lint-integration-tests-report.xml
126126
- name: Store Golangci lint integration tests report artifact
127127
if: always()
128-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
128+
uses: actions/upload-artifact@v4
129129
with:
130130
name: golangci-lint-integration-tests-report
131131
path: ./integration-tests/golangci-lint-integration-tests-report.xml

.github/workflows/integration-tests-publish.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,15 @@ jobs:
1818
name: Publish Integration Test Image
1919
runs-on: ubuntu-latest
2020
steps:
21-
- name: Collect Metrics
22-
id: collect-gha-metrics
23-
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
24-
with:
25-
id: starknet-e2e-publish
26-
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
27-
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
28-
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
29-
this-job-name: Publish Integration Test Image
30-
continue-on-error: true
3121
- name: Checkout the repo
32-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22+
uses: actions/checkout@v5
3323
with:
3424
persist-credentials: false
3525
- name: Setup GitHub Token
3626
id: setup-github-token
37-
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # setup-github-token@0.1.2
27+
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/v1
3828
with:
39-
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
29+
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
4030
aws-lambda-url: ${{ secrets.GATI_RELENG_LAMBDA_URL }}
4131
aws-region: ${{ secrets.QA_AWS_REGION }}
4232
- name: Build Image

.github/workflows/integration-tests-smoke.yml

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
team:
1313
description: Team to run the tests for (e.g. BIX, CCIP)
1414
required: true
15-
type: string
15+
type: string
1616

1717
# Only run 1 of this workflow at a time per PR
1818
concurrency:
@@ -36,16 +36,6 @@ jobs:
3636
id-token: write
3737
contents: read
3838
steps:
39-
- name: Collect Metrics
40-
id: collect-gha-metrics
41-
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
42-
with:
43-
id: starknet-e2e-build
44-
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
45-
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
46-
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
47-
this-job-name: Build Chainlink Image
48-
continue-on-error: true
4939
- name: Check if chainlink-starknet image exists
5040
id: check-image
5141
uses: smartcontractkit/chainlink-github-actions/docker/image-exists@fc3e0df622521019f50d772726d6bf8dc919dd38 # v2.3.19
@@ -95,27 +85,17 @@ jobs:
9585
id-token: write
9686
contents: read
9787
name: Build Test Image
98-
runs-on: ubuntu20.04-32cores-128GB
88+
runs-on: ubuntu24.04-32cores-128GB
9989
steps:
100-
- name: Collect Metrics
101-
id: collect-gha-metrics
102-
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
103-
with:
104-
id: starknet-e2e-build-test-image
105-
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
106-
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
107-
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
108-
this-job-name: Build Test Image
109-
continue-on-error: true
11090
- name: Setup GitHub Token
11191
id: setup-github-token
112-
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # setup-github-token@0.1.2
92+
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/v1
11393
with:
114-
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
94+
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
11595
aws-lambda-url: ${{ secrets.GATI_RELENG_LAMBDA_URL }}
11696
aws-region: ${{ secrets.QA_AWS_REGION }}
11797
- name: Checkout the repo
118-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
98+
uses: actions/checkout@v5
11999
with:
120100
ref: ${{ github.sha }}
121101
persist-credentials: false
@@ -129,8 +109,8 @@ jobs:
129109

130110
run_tests:
131111
name: Run Smoke Tests
132-
runs-on: ubuntu20.04-16cores-64GB
133-
needs: [ build_chainlink_image, build_test_image ]
112+
runs-on: ubuntu24.04-16cores-64GB
113+
needs: [build_chainlink_image, build_test_image]
134114
environment: integration
135115
env:
136116
INTERNAL_DOCKER_REPO: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com
@@ -140,19 +120,8 @@ jobs:
140120
id-token: write
141121
contents: read
142122
steps:
143-
- name: Collect Metrics
144-
id: collect-gha-metrics
145-
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
146-
with:
147-
id: starknet-e2e-smoke
148-
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
149-
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
150-
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
151-
this-job-name: Run Smoke Tests
152-
test-results-file: '{"testType":"go","filePath":"/tmp/gotest.log"}'
153-
continue-on-error: true
154123
- name: Checkout the repo
155-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
124+
uses: actions/checkout@v5
156125
with:
157126
persist-credentials: false
158127
- name: Install Nix
@@ -163,9 +132,9 @@ jobs:
163132
uses: ./.github/actions/install-cairo
164133
- name: Setup GitHub Token
165134
id: setup-github-token
166-
uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # 0.2.1
135+
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/v1
167136
with:
168-
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
137+
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
169138
aws-lambda-url: ${{ secrets.GATI_RELENG_LAMBDA_URL }}
170139
aws-region: ${{ secrets.QA_AWS_REGION }}
171140
- name: Build contracts
@@ -175,7 +144,8 @@ jobs:
175144
run: |
176145
yarn install && yarn build
177146
- name: Generate config overrides
178-
run: | # https://github.com/smartcontractkit/chainlink-testing-framework/blob/main/config/README.md
147+
run:
148+
| # https://github.com/smartcontractkit/chainlink-testing-framework/blob/main/config/README.md
179149
cat << EOF > config.toml
180150
[Network]
181151
selected_networks=["SIMULATED"]

.github/workflows/integration-tests-soak.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
team:
1919
description: Team to run the tests for (e.g. BIX, CCIP)
2020
required: true
21-
type: string
21+
type: string
2222

2323
env:
2424
TEST_LOG_LEVEL: debug
@@ -28,7 +28,7 @@ env:
2828
jobs:
2929
run_tests:
3030
name: Run soak Tests
31-
runs-on: ubuntu20.04-16cores-64GB
31+
runs-on: ubuntu24.04-16cores-64GB
3232
environment: integration
3333
env:
3434
TEST_SUITE: soak
@@ -40,19 +40,8 @@ jobs:
4040
id-token: write
4141
contents: read
4242
steps:
43-
- name: Collect Metrics
44-
id: collect-gha-metrics
45-
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
46-
with:
47-
id: starknet-e2e-soak
48-
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
49-
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
50-
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
51-
this-job-name: Run soak Tests
52-
test-results-file: '{"testType":"go","filePath":"/tmp/gotest.log"}'
53-
continue-on-error: true
5443
- name: Checkout the repo
55-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
44+
uses: actions/checkout@v5
5645
with:
5746
persist-credentials: false
5847
- name: Install Nix
@@ -63,9 +52,9 @@ jobs:
6352
uses: ./.github/actions/install-cairo
6453
- name: Setup GitHub Token
6554
id: setup-github-token
66-
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # setup-github-token@0.1.2
55+
uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/v1
6756
with:
68-
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
57+
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
6958
aws-lambda-url: ${{ secrets.GATI_RELENG_LAMBDA_URL }}
7059
aws-region: ${{ secrets.QA_AWS_REGION }}
7160
- name: Build contracts

.github/workflows/integration_gauntlet.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
CI: true
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
17+
- uses: actions/checkout@v5
1818
with:
1919
persist-credentials: false
2020
- name: Install Nix
@@ -26,12 +26,12 @@ jobs:
2626
uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc
2727
with:
2828
name: chainlink-cosmos
29-
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
29+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
3030
- run: nix develop -c yarn install --frozen-lockfile
3131
- run: nix develop -c yarn eslint
3232
- name: Upload eslint report
3333
if: always()
34-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: gauntlet-eslint-report
3737
path: ./eslint-report.json
@@ -40,17 +40,8 @@ jobs:
4040
name: Run Integration Gauntlet Tests
4141
runs-on: ubuntu-latest
4242
steps:
43-
- name: Collect Metrics
44-
id: collect-gha-metrics
45-
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
46-
with:
47-
id: starknet-integration-gauntlet
48-
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
49-
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
50-
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
51-
this-job-name: Run Integration Gauntlet Tests
5243
- name: Checkout sources
53-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
44+
uses: actions/checkout@v5
5445
with:
5546
persist-credentials: false
5647

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout sources
16-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
uses: actions/checkout@v5
1717
with:
1818
persist-credentials: false
1919

.github/workflows/monitoring-build-push-ecr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
contents: read
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
20+
uses: actions/checkout@v5
2121
with:
2222
persist-credentials: false
2323

0 commit comments

Comments
 (0)