diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a2527177..850e74dcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ on: jobs: Build: - runs-on: ubuntu-latest + runs-on: codebuild-CryptoToolsCI-linux-amazon-s3-encryption-client-java-${{ github.run_id }}-${{ github.run_attempt }} permissions: id-token: write contents: read diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 722dfa590..7da491ee4 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -12,7 +12,7 @@ on: jobs: MigrationExamples: - runs-on: ubuntu-latest + runs-on: codebuild-CryptoToolsCI-linux-amazon-s3-encryption-client-java-${{ github.run_id }}-${{ github.run_attempt }} permissions: id-token: write contents: read diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 4ee343f00..63dd221fc 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -5,7 +5,7 @@ on: jobs: SpotBugs: - runs-on: ubuntu-latest + runs-on: codebuild-CryptoToolsCI-linux-amazon-s3-encryption-client-java-${{ github.run_id }}-${{ github.run_attempt }} permissions: id-token: write contents: read @@ -13,6 +13,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + cache: 'maven' - name: Run SpotBugs run: mvn -B -ntp com.github.spotbugs:spotbugs-maven-plugin:check shell: bash