Skip to content

ci: stop Generate Index pushing [skip ci] commits to PR branches #219

Closed

Description

@DevSecNinja

Follow-up from #218 (Copilot review) and part of #211.

Problem

.github/workflows/generate-index.yml runs on pull requests that touch .apm/**, .github/prompts/** or .github/agents/**. When INDEX.md/README.md change, it commits docs: Update index [skip ci] and pushes to the PR branch with GITHUB_TOKEN. Commits pushed with GITHUB_TOKEN, and commits marked [skip ci], don't trigger workflows. So the PR's new head has no check runs.

This affects exactly the PRs the SkillSpector scan targets, including materialize review PRs that change .github/agents/**. Once Scan AI primitives (or any other check) is required in the ruleset, those PRs would wait forever.

Proposed solution

Pick one:

  • On pull_request, fail with a "run bash scripts/generate-index.sh and commit" message instead of pushing. Lefthook already regenerates and re-stages the index locally (.lefthook.toml, generate-index command with stage_fixed). Keep the push only for main.
  • Or push with a CI-triggering App token and drop [skip ci].

Do this before making Scan AI primitives a required check (see the SkillSpector section of CONTRIBUTING.md).

Activity

  1. added 2 commits that reference this issue on Nov 12, 2026
    ceadda1
    2215972
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions