Skip to content

Feature: Support Self-Repository Syntax For Actions #2248

Description

@blink1073

Pre-submission checks

  • I am not reporting a bug (crash, false positive/negative, etc). These must be filed via the bug report template.
  • I have looked through both the open and closed issues for a duplicate request.
  • I affirm that I have followed the AI policy and that this request constitutes my own words and understanding.

What's the problem this feature will solve?

GitHub Actions now supports a dedicated syntax for sibling actions within a repository (docs). References like uses: my_org/my_repo/actions/foo@v1 can be replaced with uses: $/./actions/foo, avoiding the need to keep the internal references consistent and making it easier to work on one action and test it in another. Currently an action with that syntax fails with:

ERROR collect_inputs: github_actions_models::common: msg="malformed `uses` ref: missing `@<ref>` in $/git-sign"
fatal: no audit was performed
error: failed to load file://./tag-version/action.yml as action
  |
  = help: this typically indicates a bug in zizmor; please report it
  = help: https://github.com/zizmorcore/zizmor/issues/new?template=bug-report.yml
Caused by:
    0: failed to load file://./tag-version/action.yml as action
    1: couldn't turn input into a an appropriate model
    2: data did not match any variant of untagged enum Runs

Describe the solution you'd like

Add support for the new self-reference syntax.

Additional context

No response

Activity

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 request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions