Skip to content

Bug: CI release workflows use mutable actions with broad publish-capable permissions #231

Description

@Abdulmumin1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions