Unverified Commit c7178749 authored by iamjpotts's avatar iamjpotts Committed by GitHub
Browse files

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
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [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: default avatarJoshua Potts <8704475+iamjpotts@users.noreply.github.com>
parent c2a41742
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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