Skip to content

Commit 0226008

Browse files
Switch CI to use roles (#1173)
1 parent be8ed87 commit 0226008

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/clang-tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout Sources
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: clang-tidy lint
1919
run: |

.github/workflows/codecov.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@ on:
44
push:
55

66
env:
7-
BUILDER_VERSION: v0.9.55
7+
BUILDER_VERSION: v0.9.72
88
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
99
BUILDER_SOURCE: releases
1010
PACKAGE_NAME: aws-c-common
11-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
12-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
13-
AWS_REGION: us-east-1
11+
CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }}
12+
AWS_DEFAULT_REGION: us-east-1
13+
14+
permissions:
15+
id-token: write # This is required for requesting the JWT
1416

1517
jobs:
1618
codecov-linux:
17-
runs-on: ubuntu-22.04
19+
runs-on: ubuntu-24.04
1820
steps:
21+
- uses: aws-actions/configure-aws-credentials@v4
22+
with:
23+
role-to-assume: ${{ env.CRT_CI_ROLE }}
24+
aws-region: ${{ env.AWS_DEFAULT_REGION }}
1925
- name: Checkout Sources
20-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2127
- name: Build ${{ env.PACKAGE_NAME }} + consumers
2228
run: |
2329
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"

0 commit comments

Comments
 (0)