From 609dc3d609ab057093e9d52210c2ebd7def3f11f Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Mon, 25 Nov 2024 21:35:43 -0800 Subject: [PATCH] switch code cov --- .github/workflows/clang-tidy.yml | 4 ++-- .github/workflows/codecov.yml | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 3967514d5..491acb01f 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -7,13 +7,13 @@ jobs: strategy: matrix: - host: [ubuntu-22.04] # latest + host: [ubuntu-24.04] # latest runs-on: ${{ matrix.host }} steps: - name: Checkout Sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: clang-tidy lint run: | diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 317354e59..caf6e2959 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -4,20 +4,26 @@ on: push: env: - BUILDER_VERSION: v0.9.55 + BUILDER_VERSION: v0.9.72 BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net BUILDER_SOURCE: releases PACKAGE_NAME: aws-c-common - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: us-east-1 + CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }} + AWS_DEFAULT_REGION: us-east-1 + +permissions: + id-token: write # This is required for requesting the JWT jobs: codecov-linux: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: + - uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ env.CRT_CI_ROLE }} + aws-region: ${{ env.AWS_DEFAULT_REGION }} - name: Checkout Sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build ${{ env.PACKAGE_NAME }} + consumers run: | python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"