Release and drift workflows use mutable action refs and broad/default GitHub token permissions. Affected areas: .github/workflows/release.yml and .github/workflows/openapi-drift.yml. Impact: a compromised mutable action tag in a privileged workflow could use repository write permissions or OIDC publishing permissions in the package release path. Expected: CI jobs follow least privilege and pin third-party/GitHub actions to immutable SHAs. Fix: pin actions to full commit SHAs, split build and publish so id-token: write exists only on the publish job, set minimal permissions such as contents: read where possible, disable checkout credential persistence before untrusted install/build steps, and keep release environment approvals on publish.
Release and drift workflows use mutable action refs and broad/default GitHub token permissions. Affected areas: .github/workflows/release.yml and .github/workflows/openapi-drift.yml. Impact: a compromised mutable action tag in a privileged workflow could use repository write permissions or OIDC publishing permissions in the package release path. Expected: CI jobs follow least privilege and pin third-party/GitHub actions to immutable SHAs. Fix: pin actions to full commit SHAs, split build and publish so id-token: write exists only on the publish job, set minimal permissions such as contents: read where possible, disable checkout credential persistence before untrusted install/build steps, and keep release environment approvals on publish.