Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 19:04
· 2 commits to main since this release
97d2860
feat!: clear AWS credentials by default in releaser-token (#152)

Flips `clear-aws-credentials` in `releaser-token` from `false` to
`true`, so `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and
`AWS_SESSION_TOKEN` no longer stay in `$GITHUB_ENV` after the token
step. Before, later steps (semantic-release, `uv build`, `twine`,
publish actions) could reuse the session to read the app key secret
again, which undid clearing `APP_PEM`.

This is not an active **problem**, but this hardening helps to improve
our secure-by-default posture.

Breaking change: the squash-merge title and the `BREAKING CHANGE:`
footer make semantic-release cut v2.0.0. Consumers that use the AWS
session from this action in later steps must set `clear-aws-credentials:
"false"`. The README now documents the new default, the opt-out, and an
upgrade note.

Closes OvertureMaps/workflows#151

### Consumers

Checked from local clones; other consumers may exist. None need
`clear-aws-credentials: "false"`.

- overture-core (v1.0.3): later steps are semantic-release, `uv build`,
`twine`, PyPI trusted publishing. No AWS use.
- matchers (v1.0.3): already sets `"true"`; the input can be dropped on
the next bump.
- overture-providers (v1.0.2): same release shape as overture-core. No
AWS use.
- tf-places-labels (v1.0.2): `release.yml` only uses the app token with
`gh`. Its other workflows run their own `configure-aws-credentials`.
- tf-places-matcher-model (v1.0.0), `run-release-main.yml` and
`reusable-model-training.yml`: later AWS steps (`setup-codeartifact`,
`setup-codeartifact-uv`, `setup-databricks` MLflow role) each assume
their own role, so the leftover session is unused.

### Testing

No tests cover this action. Workflow linting (zizmor, actionlint) was
not run locally. The change is a default value plus docs.

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