Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 14:47
· 9 commits to main since this release
9ddbb7e
feat: add releaser-token composite action and semver releases (#139)

Closes #138

## Motivation
The releaser app token block (configure AWS creds -> fetch PEM from
Secrets Manager -> `actions/create-github-app-token`) is copy-pasted
across the org, e.g. twice in overturemaps-py `release.yml`, and the
number of consumers keeps growing. Every SHA-pinned action bump has to
be fanned out by hand, and each copy re-justifies the same zizmor
suppression.

This repo also publishes no tags or releases, so Dependabot cannot
propose version bumps to consumers of its actions (the `github-actions`
ecosystem tracks tags and releases, not branches).

This PR centralizes the block in one action and adds automated semver
releases so consumers can pin `@<sha> # vX.Y.Z` and receive updates via
Dependabot.

Benefits:
- **Fewer Dependabot bumps:** the three SHA-pinned actions live in one
place, so one bump here replaces a PR per consumer repo (consumers then
take a single `OvertureMaps/workflows` bump).
- **Improved security:** the PEM is cleared from `$GITHUB_ENV` in an
`if: always()` step, including when token creation fails, so it no
longer stays readable by every later step (and third-party action) in
the job. Most existing copies never clear it. `clear-aws-credentials`
can drop the AWS credentials the same way.

## Summary
- **`releaser-token` composite action**
(`.github/actions/releaser-token`): configure AWS creds -> fetch app PEM
from Secrets Manager -> `create-github-app-token` -> clear PEM (`if:
always()`, opt out with `clear-pem: "false"`). Defaults match the
overture-releaser block; `client-id`, `secret-id`, `role-to-assume`,
`owner`, `repositories` and `permission-*` inputs make it usable for any
app. Optional `clear-aws-credentials`. Output: `token`.
- **Semver releases** (`.github/workflows/release.yml`):
semantic-release on push to `main` cuts `vX.Y.Z` tags and releases so
Dependabot can bump consumers. Tooling is pinned in
`.github/release/package.json` and kept current by a new Dependabot
`npm` entry.
- Existing Dependabot config already covers `/.github/actions/*`.

## Notes
- First release will be `v1.0.0` (verified with a local `--dry-run`).
- Downstream role access is merged
(OvertureMaps/omf-github-terraform#258). Consumer migrations, including
deleting superseded GH Actions secrets, follow after the first tag;
checklist is in the action README.
- Not run end to end against live AWS/GitHub. zizmor and all PR checks
pass.

---------

Signed-off-by: John McCall <john@overturemaps.org>