Skip to content

Add daily Actions/AW AST linter factory - #69972

Merged
pelikhan merged 2 commits into
mainfrom
copilot/add-aw-actions-linter-factory
Oct 18, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/add-aw-actions-linter-factory

Conversation

Copilot AI commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Add daily automation to mine known vulnerabilities, security guidance, and recurring DevOps mistakes for Actions/AW AST lint rules. Review existing rules against proven practices and propose one evidence-backed addition or refinement per run.

  • Mining and refinement
    • Correlate advisories, official guidance, merged fixes, and review feedback.
    • Rotate existing-rule reviews; reject speculative, duplicate, or previously rejected proposals without new evidence.
  • AST integration
    • Extend pkg/workflow/lint using existing Actions/AW semantic APIs.
    • Require regression cases, safe counterexamples, and coverage for each supported AST target.
  • Bounded automation
    • Keep agent repository access read-only; restrict generated draft PRs to pkg/workflow/lint/**.
    • Cap patch size, skip while a prior proposal remains open, and emit no-op when evidence is insufficient.
    • Include the compiled workflow and configuration contract coverage.

Copilot AI and others added 2 commits October 18, 2026 18:13
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Add daily Actions and AW AST linter factory Add daily Actions/AW AST linter factory Oct 18, 2026
Copilot AI requested a review from pelikhan October 18, 2026 18:22
@pelikhan
pelikhan marked this pull request as ready for review October 18, 2026 18:32
Copilot AI max review requested due to automatic review settings October 18, 2026 18:32
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot add a miner and a fixer workflow

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Runtime and scanner validation remains unverified for this scheduled code-writing automation.

2 open issues
What changed in this PR

Adds daily, evidence-driven automation to propose new or refined Actions/AW AST lint rules in pkg/workflow/lint.

Changes:

  • Mines security guidance and repository feedback while reviewing existing rules.
  • Restricts proposals to bounded draft PRs and pauses while a proposal remains open.
  • Adds the compiled workflow and configuration contract coverage.
File Description
pkg/​cli/​actions_aw_linter_factory_workflow_contract_test.go Checks workflow configuration and safety constraints.
.github/​workflows/​actions-aw-linter-factory.md Defines evidence gathering, AST implementation, and publication requirements.
.github/​workflows/​actions-aw-linter-factory.lock.yml Provides the compiled GitHub Actions workflow.

Review effort: Max

Comment on lines +136 to +137
alone is not proof of detection. Findings exit nonzero: distinguish expected
diagnostics from parse/tool failures and unexplained false positives.
Comment on lines +44 to +62
MaxPatchFiles int `yaml:"max-patch-files"`
} `yaml:"create-pull-request"`
} `yaml:"safe-outputs"`
}
require.NoError(t, yaml.Unmarshal([]byte(parts[1]), &config))
assert.Equal(t, "daily", config.On.Schedule)
assert.Contains(t, config.On.SkipIfMatch, "is:pr is:open")
assert.Equal(t, "[actions-aw-linter] ", config.SafeOutputs.CreatePullRequest.TitlePrefix)
assert.Contains(t, config.On.SkipIfMatch, strings.TrimSpace(config.SafeOutputs.CreatePullRequest.TitlePrefix))
assert.True(t, config.Strict)
assert.Equal(t, "gh-proxy", config.Tools.GitHub.Mode)
assert.Equal(t, map[string]string{
"contents": "read", "issues": "read", "pull-requests": "read", "copilot-requests": "write",
}, config.Permissions)
pr := config.SafeOutputs.CreatePullRequest
assert.True(t, pr.Draft)
assert.Equal(t, []string{"pkg/workflow/lint/**"}, pr.AllowedFiles)
assert.Equal(t, "blocked", pr.ProtectedFiles)
assert.Positive(t, pr.MaxPatchFiles)
@pelikhan
pelikhan merged commit 72d795c into main Oct 18, 2026
4 of 5 checks passed
@pelikhan
pelikhan deleted the copilot/add-aw-actions-linter-factory branch October 18, 2026 18:56
Copilot stopped work on behalf of pelikhan due to an error October 18, 2026 18:57
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.92.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants