From c71787499ba3656c01f2db189496e16b8608bf8f Mon Sep 17 00:00:00 2001 From: iamjpotts <8704475+iamjpotts@users.noreply.github.com> Date: Mon, 22 Apr 2024 12:18:12 -0400 Subject: [PATCH] CI: Only allow daily credentials verification to run on smithy-lang/ repo (#3597) ## Motivation and Context The CI job that checks CI credentials fails when run on forks, resulting in daily job failure alerts in forks. Example failure: https://github.com/iamjpotts/aws-smithy-rs/actions/runs/8768654532 See https://github.com/smithy-lang/smithy-rs/issues/3519. ## Description For the `Daily Credentials Verification` workflow, add a condition on each of its jobs so that they will only run for the `smithy-lang/smithy-rs` repo and not any forks. ## Testing No code changes. ## Checklist - [X] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [X] I have updated `CHANGELOG.next.toml` if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates ---- CI only; no change log entry required. _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com> --- .github/workflows/credentials-verification.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/credentials-verification.yml b/.github/workflows/credentials-verification.yml index 94d907477e..4b83b9ba1a 100644 --- a/.github/workflows/credentials-verification.yml +++ b/.github/workflows/credentials-verification.yml @@ -9,6 +9,7 @@ jobs: # Verifies the token used by the bot to publish crates to crates.io verify-crates-io-token: name: Verify Crates.io Token + if: github.repository == 'smithy-lang/smithy-rs' runs-on: ubuntu-latest steps: - name: Checkout smithy-rs @@ -34,6 +35,7 @@ jobs: # Verifies the token used to perform actions on the repository on behalf of the bot user verify-personal-access-token: name: Verify Personal Access Token + if: github.repository == 'smithy-lang/smithy-rs' runs-on: ubuntu-latest steps: - name: Checkout smithy-rs