Skip to content

Allow projects to verify their actions usage #482

Closed

Description

@snazy

When authoring GH workflows, people may add new or change action references (uses:).
Also dependabot and Renovate change action references.

If the workflows/jobs/steps are not run when such an action reference is added or changed, either by humans or bots, those are not validated against the set of allowed actions.

It would be nice for ASF projects to be able to validate their workflow files before a change is being merged, as part of their usual CI jobs.

I can imagine, that a workflow in the apache/infrastructure-actions could provide the necessary logic to check all uses: against the allowed actions. That workflow could then be called, via workflow_call, from projects' workflows, so those do not need to copy any code.

Activity

  1. added a commit that references this issue on Feb 12, 2026
    d7b89bd
  2. added a commit that references this issue on Feb 27, 2026
    29b5708
  3. kevinjqliu commented on Mar 25, 2026

    @kevinjqliu
    Contributor

    oh hey @snazy looks like we're trying to solve a very similar problem (in slightly different ways)

    When GH workflows are blocked by ASF Infra, they are failing silently (#574).
    I opened #587 to create a new action that projects can use to turn the silent failure into an actual error, by adding

    steps:
      - uses: actions/checkout@v4
        with:
          persist-credentials: false
      - uses: apache/infrastructure-actions/allowlist-check@main
    

    Would love to get your thoughts on it!

  4. jbonofre commented on Mar 26, 2026

    @jbonofre
    Member

    Maybe we can also consider a check async (not as part of the GH Action). I think it would be a good alternative to explicitly defining an action. Just my €0.01 ;)

  5. added
    enhancementNew feature or request
    gatewayThings related to the GitHub Actions allowlist gateway
    on Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgatewayThings related to the GitHub Actions allowlist gateway

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions