diff --git a/.github/workflows/build-test-linux.yml b/.github/workflows/build-test-linux.yml index cb8b29a576..cbfc723daa 100644 --- a/.github/workflows/build-test-linux.yml +++ b/.github/workflows/build-test-linux.yml @@ -30,12 +30,13 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 + cache: false - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 submodules: 'true' @@ -49,7 +50,7 @@ jobs: go-version: 1.19.2 - name: Cache build output - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.cache/go-build @@ -60,7 +61,7 @@ jobs: run: make test - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: verbose: true diff --git a/.github/workflows/build-test-macos.yml b/.github/workflows/build-test-macos.yml index 8993ec16ed..f32138d259 100644 --- a/.github/workflows/build-test-macos.yml +++ b/.github/workflows/build-test-macos.yml @@ -30,18 +30,19 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 + cache: false - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 submodules: 'true' - name: Cache build output - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/Library/Caches/go-build @@ -52,7 +53,7 @@ jobs: run: make test - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: verbose: true diff --git a/.github/workflows/build-test-windows.yml b/.github/workflows/build-test-windows.yml index 036d07d71c..3ec0220a0b 100644 --- a/.github/workflows/build-test-windows.yml +++ b/.github/workflows/build-test-windows.yml @@ -31,15 +31,16 @@ jobs: os: [ windows-2019, windows-latest ] steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 + cache: false - name: Cache Go - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | %LocalAppData%\go-build @@ -53,7 +54,7 @@ jobs: run: make test - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: verbose: true diff --git a/.github/workflows/clean-aws-resources.yml b/.github/workflows/clean-aws-resources.yml index f714c18713..8b1c878118 100644 --- a/.github/workflows/clean-aws-resources.yml +++ b/.github/workflows/clean-aws-resources.yml @@ -15,29 +15,29 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Clean old ami run: go run ./tool/clean/clean_ami/clean_ami.go --tags=clean - + clean-opensource-dedicated-hosts: runs-on: ubuntu-latest permissions: id-token: write contents: read steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 @@ -66,11 +66,11 @@ jobs: ] fail-fast: false steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets.INTERNAL_AWS_ASSUME_ROLE }} aws-region: ${{ matrix.region }} @@ -105,11 +105,11 @@ jobs: ] fail-fast: false steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets[matrix.role_secret] }} aws-region: ${{ matrix.region }} diff --git a/.github/workflows/close-stalled.yml b/.github/workflows/close-stalled.yml index e4c24f94dd..1d94e3bd2d 100644 --- a/.github/workflows/close-stalled.yml +++ b/.github/workflows/close-stalled.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'aws/amazon-cloudwatch-agent' runs-on: ubuntu-latest steps: - - uses: actions/stale@v4 + - uses: actions/stale@v7 with: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/integrationTest.yml b/.github/workflows/integrationTest.yml index 293d609b15..67161acf7f 100644 --- a/.github/workflows/integrationTest.yml +++ b/.github/workflows/integrationTest.yml @@ -48,22 +48,23 @@ jobs: # Set up building environment, patch the dev repo code on dispatch events. - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 + cache: false - name: Install rpm run: sudo apt install rpm - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache go id: cached_go - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -72,7 +73,7 @@ jobs: - name: Cache binaries id: cached_binaries - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: "cached_binaries_${{ github.sha }}" path: go.mod @@ -140,13 +141,13 @@ jobs: ecs_ec2_launch_daemon_matrix: ${{ steps.set-matrix.outputs.ecs_ec2_launch_daemon_matrix }} ecs_fargate_matrix: ${{ steps.set-matrix.outputs.ecs_fargate_matrix }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 @@ -176,24 +177,24 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache win zip id: cached_win_zip - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: "cached_win_zip_${{ github.sha }}" path: go.mod @@ -243,19 +244,19 @@ jobs: path: test - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache pkg id: cached_pkg - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: "cached_pkg_${{ github.sha }}" path: go.mod @@ -299,17 +300,17 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache msi id: cached_msi - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: "cached_msi_${{ github.sha }}" path: go.mod @@ -338,17 +339,17 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache sig id: cached_sig - uses: actions/cache@v2 + uses: actions/cache@v3 with: key: "cached_sig_${{ github.sha }}" path: go.mod @@ -388,13 +389,13 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 @@ -431,20 +432,20 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache if success id: ec2-linux-integration-test - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: go.mod key: ec2-nvidia-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -531,7 +532,7 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} @@ -544,7 +545,7 @@ jobs: - name: Cache if success id: ec2-linux-integration-test - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: go.mod key: ec2-linux-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -618,7 +619,7 @@ jobs: # # - name: Cache if success # id: ec2-win-integration-test -# uses: actions/cache@v2 +# uses: actions/cache@v3 # with: # path: go.mod # key: ec2-win-integration-test-${{ github.sha }}-${{ matrix.arrays.os }} @@ -673,13 +674,13 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 @@ -708,13 +709,13 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 @@ -769,20 +770,20 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache if success id: ecs-fargate-integration-test - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: go.mod key: ecs-fargate-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }} @@ -835,20 +836,20 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: ${{env.CWA_GITHUB_TEST_REPO_NAME}} ref: ${{env.CWA_GITHUB_TEST_REPO_BRANCH}} - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ env.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2 - name: Cache if success id: stress-tracking - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: go.mod key: stress-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -917,7 +918,7 @@ jobs: # # - name: Cache if success # id: performance-tracking -# uses: actions/cache@v2 +# uses: actions/cache@v3 # with: # path: go.mod # key: performance-tracking-test-${{ github.sha }} diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 25f9c1e46f..d029eaf570 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -16,12 +16,12 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets.S3_AWS_ASSUME_ROLE }} aws-region: us-east-1 @@ -31,7 +31,7 @@ jobs: run: sudo apt install rpm - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 submodules: 'true' @@ -55,21 +55,21 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets.S3_AWS_ASSUME_ROLE }} aws-region: us-east-1 - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/releaseTest.yml b/.github/workflows/releaseTest.yml index 3cfe106037..a50cb72bdb 100644 --- a/.github/workflows/releaseTest.yml +++ b/.github/workflows/releaseTest.yml @@ -32,14 +32,14 @@ jobs: id-token: write contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ~1.19.2 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets.TERRAFORM_AWS_ASSUME_ROLE }} aws-region: us-west-2