Skip to content

Token permission check fails on legitimate release jobs in GitHub Actions workflows #1642

@behnazh-w

Description

@behnazh-w

A release job in a GitHub Actions workflow may require contents: write permission to push a release commit. Scorecard currently allows contents: write permission for "packaging" workflows, which allows pypa/gh-action-pypi-publish only for Python. In other words, Scorecard does not recognize other release Actions, such as relekang/python-semantic-release. This limitation results in false positives.

What is the best way to resolve this issue in the current version of Scorecard?

Ideally users should be able to add such GitHub Actions to an allow list in the configuration file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions