Skip to content

Fix generated Dependabot ignore for gh-aw action subpaths #54025

Closed

Description

@joshjohanning

Fix generated Dependabot ignore for gh-aw action subpaths

Summary

gh aw compile generates a Dependabot ignore rule for github/gh-aw-actions, but Dependabot names each reusable action by its full subpath. As a result, the generated rule does not suppress updates for actions such as setup and setup-cli.

Current behavior

The compiler inserts:

ignore:
  - dependency-name: "github/gh-aw-actions" # Managed by gh aw compile. Version-locked to the gh-aw compiler; do not bump.

Dependabot identifies the actual dependencies as:

  • github/gh-aw-actions/setup
  • github/gh-aw-actions/setup-cli

The exact repository-name rule matches neither dependency.

Reproduction and evidence

  1. Configure Dependabot for the github-actions ecosystem.
  2. Run gh aw compile so it adds the managed ignore rule.
  3. Commit compiled workflows that use github/gh-aw-actions/setup or github/gh-aw-actions/setup-cli.
  4. Dependabot still opens action-pin update pull requests.

Observed examples:

Changing the managed rule to the wildcard below fixed the behavior:

ignore:
  - dependency-name: "github/gh-aw-actions/*" # Managed by gh aw compile. Version-locked to the gh-aw compiler; do not bump.

After joshjohanning/github-changelog-weekly#69 applied the wildcard, Dependabot automatically closed both affected pull requests.

Expected behavior

The compiler-generated rule should ignore every action beneath the effective actions repository, including setup, setup-cli, and other action subpaths. Recompilation should also migrate the old compiler-managed exact rule rather than retain both rules.

Agentic plan

  1. In pkg/workflow/dependabot_reconcile.go, construct the managed Dependabot pattern as c.effectiveActionsRepo() + "/*".
  2. Update reconciliation so an existing exact rule is recognized as the previous compiler-managed form when it carries the managed inline comment. Replace it with the wildcard rule instead of appending a duplicate.
  3. Preserve user-authored exact rules that do not carry the compiler-managed comment.
  4. Keep custom action repository support by deriving the wildcard from effectiveActionsRepo() rather than hard-coding github/gh-aw-actions/*.
  5. Update pkg/workflow/dependabot_test.go to cover:
    • adding the wildcard rule to a GitHub Actions update block;
    • preserving user-defined ignore entries;
    • migrating the old compiler-managed exact rule to the wildcard;
    • not duplicating an existing wildcard rule;
    • generating the corresponding wildcard for an --actions-repo owner/repo override;
    • preserving an unmarked user-authored exact rule.
  6. Update the documented examples in:
    • docs/src/content/docs/reference/dependabot.md
    • docs/src/content/docs/reference/faq.md
    • docs/src/content/docs/reference/compilation-process.md
  7. Run the targeted Dependabot reconciliation tests and the repository's standard Go formatting and validation checks.

Acceptance criteria

  • gh aw compile writes dependency-name: "github/gh-aw-actions/*" for the default actions repository.
  • Existing compiler-managed github/gh-aw-actions entries migrate cleanly to the wildcard form.
  • No duplicate managed ignore entries are introduced.
  • User-defined ignore entries remain unchanged.
  • Custom actions repositories produce <owner>/<repo>/*.
  • Documentation consistently shows the working wildcard rule.

Activity

  1. locked and limited conversation to collaborators on Aug 19, 2026
  2. unlocked this conversation on Aug 19, 2026
  3. added
    bug
    dependencies
    on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugclicommunitycompilerdependenciesperformanceworkflows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions