Skip to content

Replace push dist/ with check dist/ - #256

Merged
simonmarty merged 5 commits into
mainfrom
replace-push-with-check
Jul 2, 2025
Merged

simonmarty merged 5 commits into
mainfrom
replace-push-with-check

Conversation

@simonmarty

Copy link
Copy Markdown
Contributor
  • Replace dist/ pushing with dist/ checking
  • Check that failure happens if dist is manually updated.
  • Revert "Check that failure happens if dist is manually updated."

Issue #, if available:

Description of changes: Shamelessly taken from https://github.com/actions/javascript-action/blob/main/.github/workflows/check-dist.yml

This saves us from having to grant GitHub actions permissions to push to Git through a GitHub App. Instead, we enforce that pull requests submitted to the repository contain a dist that matches the one built by the CI.

Confirmed that the workflow fails if the dist/ is manually tampered with https://github.com/simonmarty/aws-secretsmanager-get-secrets/actions/runs/15986224191/job/45091039155

Deleted the package.yml action which is no longer needed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@simonmarty simonmarty changed the title Replace push with check Replace push dist/ with check dist/ Jul 1, 2025
@simonmarty
simonmarty enabled auto-merge (squash) July 1, 2025 23:13

@madsid madsid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@simonmarty
simonmarty disabled auto-merge July 2, 2025 17:57
@simonmarty
simonmarty merged commit 3f3c975 into main Jul 2, 2025
@simonmarty
simonmarty deleted the replace-push-with-check branch July 2, 2025 17:57
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.

3 participants