Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Only allow daily credentials verification to run on smithy-lang/ repo #3597

Merged

Conversation

iamjpotts
Copy link
Contributor

@iamjpotts iamjpotts commented Apr 21, 2024

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 #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

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • 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.

…repo

Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
@iamjpotts iamjpotts requested review from a team as code owners April 21, 2024 14:15
@ysaito1001
Copy link
Contributor

Thanks for updating the workflow! Separately verified that the daily credentials workflow passed with the changes from this PR.

Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@ysaito1001
Copy link
Contributor

Passed canary

@ysaito1001 ysaito1001 added this pull request to the merge queue Apr 22, 2024
Merged via the queue into smithy-lang:main with commit c717874 Apr 22, 2024
41 of 42 checks passed
github-merge-queue bot pushed a commit that referenced this pull request May 24, 2024
…n ci workflow is triggered from main smithy-rs repository (#3663)

Similar to #3597.

Only run these two workflows when they are triggered from the
`smithy-lang/smithy-rs` repository, not from any fork.

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->

The scheduled dry run fails daily in forks, failing each time,
triggering alerts to the owner of the fork repository.

The github pages publishing workflow does not run regularly in forks,
but does run when a fork is synced. It would be undesirable for an
arbitrary fork to publish.

## Description
<!--- Describe your changes in detail -->

On each of the two github workflows, add an `if` condition testing the
repository owner and name. Only run if it matches the official
repository, and is not a fork.

## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
n/a

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [ ] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates
- [ ] I have updated `CHANGELOG.next.toml` if I made changes to the AWS
SDK, generated SDK code, or SDK runtime crates

n/a in both cases
----

_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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants