Repository navigation
Add daily Actions/AW AST linter factory - #69972
Merged
Merged
Conversation
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
pelikhan
marked this pull request as ready for review
October 18, 2026 18:32
Collaborator
|
@copilot add a miner and a fixer workflow |
Contributor
There was a problem hiding this comment.
🔵 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) |
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.
pkg/workflow/lintusing existing Actions/AW semantic APIs.pkg/workflow/lint/**.