Skip to content

Add sensitive public file permission linter - #80766

Open
gh-aw-bot wants to merge 9 commits into
mainfrom
copilot/linter-minerwritefilepublicperm-sensitive-80a56ecc
Open

gh-aw-bot wants to merge 9 commits into
mainfrom
copilot/linter-minerwritefilepublicperm-sensitive-80a56ecc

Conversation

@gh-aw-bot

@gh-aw-bot gh-aw-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

FilePermPublic makes files world-readable, including files whose paths or content may indicate sensitive data. This change adds an analyzer to flag those uses for review.

  • Detection: Checks os.WriteFile, os.OpenFile, and os.MkdirAll calls using FilePermPublic for sensitive terms in path or content expressions.
  • Integration: Registers and documents writefilepublicpermsensitive; CI enforcement remains deferred pending review of heuristic findings.
  • Coverage: Adds analyzer fixtures for aliases, constant strings, suppressions, and non-matching calls.

gh-aw-bot and others added 3 commits November 24, 2026 18:12
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@gh-aw-bot gh-aw-bot changed the title [WIP] Add sensitive public file permission linter Add sensitive public file permission linter Nov 24, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 24, 2026 18:23
Copilot AI adaptive review requested due to automatic review settings November 24, 2026 18:23
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 7.4K · history

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 5.1K · history

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

Lean already. Ship.

Generated by Ponytail Reviewer for #80766 · codex · routed: gpt61 medium · ~6 AIC · ⌖ ~1 AIC · ⊞ 176 · history

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

Reviewed PR #80766 at head d3f6d64; no applicable normative specification contract was identified, so no review or specification update was needed.

Generated by PR Specification Reviewer for #80766 · copilot · gpt56 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.8K · history

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K · history

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-ddad9d43-d573-4c84-9b5d-dca3f58235c1","parents":[],"payload":{"id":"ldg-b0fc7190-5461-46ad-8cc5-0bbc7a5afaa5","operation":"append","value":{"finding_count":0,"head_sha":"d3f6d6450f15870ead2bfab47eb5ac2d6df49160","outcome":"aligned"}},"sha":"sha256:b57d578d5e5ae8c9245a2e2632d28856f394f617bc35bbd83a6d61e8709e1cac","timestamp":"2026-11-24T18:30:48.154Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-24T18:28:13Z
review_event: REQUEST_CHANGES
top_themes:
  - substring-based sensitive-term matching creates broad false positives
  - analyzer fixture contains an unannotated matching diagnostic
files_reviewed:
  - pkg/linters/writefilepublicpermsensitive/writefilepublicpermsensitive.go
  - pkg/linters/writefilepublicpermsensitive/testdata/src/example/example_test.go
comment_count: 2
History

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K · history
Comment /review to run again

@github-actions github-actions Bot 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.

Found two blocking issues in the new analyzer:

  • The substring heuristic produces broad false positives for ordinary identifiers and strings (for example, author, monkey, and block).
  • The analyzer testdata contains an unannotated matching call in example_test.go, which causes an unexpected diagnostic under analysistest.Run.

Please address both before merge.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review to run again

)

func testFile(data []byte) {
os.WriteFile("secret", data, constants.FilePermPublic)

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.

This call matches the analyzer but has no // want annotation. analysistest.Run loads the package testdata, so this fixture produces an unexpected diagnostic and makes the analyzer test fail. Add the expected diagnostic (or move this case to a fixture that is intentionally excluded).

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.

_test.go fixtures are intentionally skipped by filecheck.ShouldSkipFilename, so this case should remain unannotated. I removed the incorrect expected diagnostic and verified the analyzer test passes (d0bf127).

ast.Inspect(expr, func(n ast.Node) bool {
if found || n == nil {
return false
}

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.

The substring test makes this analyzer report many ordinary names as sensitive: key matches monkey/keyboard, auth matches author, and lock matches block/clock. Because this linter is registered globally, these false positives will make its deferred enforcement noisy and can hide the real findings. Please tokenize identifiers/strings or otherwise require term boundaries before enabling it.

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.

Replaced substring checks with whole-word matching over camelCase and punctuation-delimited segments, and added false-positive fixtures (monkey, author, environment, tokenizer). Fixed in d0bf127.

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Design Decision Gate — ADR Required

This PR adds significant business logic (211 new lines under pkg/, above the 100-line threshold) but has no linked Architecture Decision Record (ADR).

📄 Draft ADR committed: docs/adr/80766-flag-public-file-permissions-on-sensitive-writes.md. Review and complete it before merging.

🔒 This PR cannot merge until an ADR is linked in the PR body.

📋 What to do next
  1. Review the draft ADR on this branch. It was generated from the PR diff and linked issue [linter-miner] Add sensitive public file permission linter #80765.

  2. Complete the missing sections. Add context the draft could not infer, confirm the decision rationale, and list the alternatives you actually considered. The draft marks the audit of the ~67 existing FilePermPublic call sites as unknown.

  3. Commit the finalized ADR to docs/adr/ on this branch.

  4. Reference the ADR in the PR body, for example:

    ADR: ADR-80766: Flag Public File Permissions on Sensitive Writes (link unavailable: invalid HTTPS URL)

Once an ADR is linked in the PR body, this gate will re-run and verify that the implementation matches the decision.

🔎 Evidence used
  • Gate trigger: no implementation label. 211 lines added under pkg/ (default business-logic threshold: 100).
  • ADR search: the PR body has no ADR link. docs/adr/ has no file for Add sensitive public file permission linter #80766 or [linter-miner] Add sensitive public file permission linter #80765. The Fixes #80765 reference was checked, and that issue contains no ADR sections.
  • Decision (inferred from the diff): add the writefilepublicpermsensitive analyzer. It flags FilePermPublic on os.WriteFile, os.OpenFile, and os.MkdirAll when a path or content expression contains a sensitive term. CI enforcement is deferred via notYetEnforced in doc_sync_test.go.
📋 Michael Nygard ADR Format Reference

An ADR must contain these four sections to be considered complete:

  • Context: What is the problem? What forces are at play?
  • Decision: What did you decide? Why?
  • Alternatives Considered: What else could have been done?
  • Consequences: What are the trade-offs (positive and negative)?

All ADRs are stored in docs/adr/ as Markdown files, numbered by PR number.

References: §45459078390

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 6.6K · history
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-9e6b5a57-f523-4d9f-8f46-ed72230d212f","parents":[],"payload":{"id":"ldg-d887c90a-683a-4f30-bbda-62155833df2f","operation":"append","value":{"finding_count":2,"head_sha":"d3f6d6450f15870ead47eb5ac2d6df49160","outcome":"findings"}},"sha":"sha256:a041bbc201b41a338b0168c0ab99edeba255e1c5e79cb4de4d4c9f4973baa223","timestamp":"2026-11-24T18:33:06.522Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Test Quality Sentinel Report

✅ Test Quality Score: 100/100 — Excellent

Analyzed 1 test(s): 1 design, 0 implementation, 0 violation(s).

📊 Metrics (1 test)
Metric Value
Analyzed 1 (Go: 1, JS: 0, other languages: 0)
✅ Design 1 (100%)
⚠️ Implementation 0 (0%)
Edge/error coverage 1 (100%)
Duplicate clusters 0
Inflation No (16 test lines vs 106 analyzer lines, about 0.15:1)
🚨 Violations 0
Test File Classification Issues
TestWriteFilePublicPermSensitive pkg/linters/writefilepublicpermsensitive/writefilepublicpermsensitive_test.go:13 design_test, behavioral_contract, high_value None
🔎 Review notes

TestWriteFilePublicPermSensitive runs analysistest over the testdata/src/example fixtures. Its assertions live in the // want comments, so the Go-side assertions=0 stat is expected. The fixtures cover true positives (WriteFile, OpenFile, MkdirAll, sensitive path or content, aliased and dot imports, parenthesized callee) and negative controls (FilePermSensitive, 0644, a same-named constant in another package, a (nolint/redacted) suppression, a _test.go file, a generated file). No mocks are used.

Build tag on testdata/.../example_test.go: the pre-fetch flagged this new _test.go as missing (go/redacted):build. It is treated as an exemption, not a hard violation. It is an analyzer fixture, not a test binary: testdata/ is excluded from package patterns, and the seven sibling fixtures under pkg/linters/*/testdata/ also have no build tag on line 1. Adding one would be harmless if maintainers prefer it.

Execution: the sandbox denied go test in this run, so this review is static. The test was not executed here.

Verdict

✅ passed. 0% implementation tests (threshold: 30%). No guideline violations.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 7.4K · history
Comment /review to run again

@github-actions github-actions Bot 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.

✅ Test Quality Sentinel: 100/100. 0% implementation tests (threshold: 30%). No guideline violations. Note: sandbox denied go test, so this review is static.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 7.4K
Comment /review to run again

@github-actions github-actions Bot 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.

Reviewed with /tdd and /codebase-design. The analyzer is cleanly structured: it reuses the internal/ helpers, registers and documents the new analyzer, and its fixtures cover aliases, dot imports, suppressions, and generated files. The package tests and pkg/linters tests pass locally.

Main concern (inline): containsSensitive uses raw substring matching. lock already matches production lockFile writes in pkg/workflow/compiler.go and pkg/workflow/maintenance_workflow.go, and auth, env, and key match common words. Since CI enforcement is deferred, this is non-blocking now, but segment-based matching should land before enforcement is enabled.

Limits of this review

I could not read the lock-file churn (71 files) because the partial clone cannot fetch the base commit. I also could not run the analyzer over all of pkg/ because the full go vet build was killed for memory. The heuristic findings count therefore comes from the grep scan, not from the analyzer itself.

@copilot please address the inline comments before enabling enforcement.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 5.1K
Comment /matt to run again

match := func(s string) bool {
s = strings.ToLower(s)
for _, term := range terms {
if strings.Contains(s, term) {

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.

[/tdd] containsSensitive matches terms as raw substrings, so common words trip the check: auth matches author, env matches environment, key matches keyword, and token matches tokenizer. The lock term is the worst case. It matches the lockFile path already used in production at pkg/workflow/compiler.go:376 and pkg/workflow/maintenance_workflow.go:631, which write .lock.yml workflow files rather than secrets. Suggested fix: match whole identifier segments instead of substrings (split camelCase and separators such as _, -, ., and /, and list plurals like credentials explicitly), and narrow or drop lock. @copilot please address this.

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.

Sensitive terms are now matched as whole segments, plurals are included, and lock was dropped. The README and fixtures reflect the narrower heuristic. Fixed in d0bf127.

files.OpenFile(authPath, files.O_CREATE|files.O_WRONLY, c.FilePermPublic) // want "os.OpenFile uses FilePermPublic"
files.MkdirAll("secret-dir", c.FilePermPublic) // want "restricted directory mode"

files.WriteFile(publicName, data, c.FilePermPublic)

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.

[/tdd] The fixture has no non-flagged cases for the substring false positives above. Add calls such as files.WriteFile(authorName, data, c.FilePermPublic) and files.WriteFile("environment.txt", data, c.FilePermPublic) to the negative block, plus a lockFile case if lock is kept. This pins the segment-matching fix with tests that fail before the change. @copilot please address this.

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.

Added negative fixtures for authorName, environment.txt, tokenizer.txt, and lockFile, plus a call through LookupEnv to verify function names are ignored. Fixed in 4176f2a.

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.

🟡 Changes recommended

The analyzer can fail the mandatory progress gate on existing intentional public writes, while permission-detection errors and an unrelated Claude Code rollback remain unresolved.

5 open issues
What changed in this PR

Adds writefilepublicpermsensitive to gh-aw’s custom Go analyzer suite to flag potentially sensitive files created with public permissions, addressing #80765.

Changes:

  • Detects sensitive terms in paths and content for os.WriteFile, os.OpenFile, and os.MkdirAll.
  • Adds fixtures, registration, and synchronized documentation; explicit CI enforcement remains deferred.
  • Separately rolls back Claude Code from 2.1.331 to 2.1.325 in 29 generated workflow locks.
File Description
pkg/​linters/​writefilepublicpermsensitive/​writefilepublicpermsensitive.go Implements permission and sensitivity detection.
pkg/​linters/​writefilepublicpermsensitive/​writefilepublicpermsensitive_test.go Runs analyzer fixture tests.
pkg/​linters/​writefilepublicpermsensitive/​testdata/​src/​github.com/​github/​gh-aw/​pkg/​constants/​constants.go Provides permission constants for fixtures.
pkg/​linters/​writefilepublicpermsensitive/​testdata/​src/​example/​other/​other.go Provides unrelated symbols for negative cases.
pkg/​linters/​writefilepublicpermsensitive/​testdata/​src/​example/​generated.go Covers generated-file exclusion.
pkg/​linters/​writefilepublicpermsensitive/​testdata/​src/​example/​example.go Covers matching, non-matching, and suppressed calls.
pkg/​linters/​writefilepublicpermsensitive/​testdata/​src/​example/​example_test.go Covers test-file exclusion.
pkg/​linters/​writefilepublicpermsensitive/​testdata/​src/​example/​dot.go Covers dot imports and parentheses.
pkg/​linters/​spec_test.go Adds analyzer to documentation contract tests.
pkg/​linters/​registry.go Registers the analyzer.
pkg/​linters/​README.md Documents detection behavior and limitations.
pkg/​linters/​doc.go Updates analyzer inventory comments.
pkg/​linters/​doc_sync_test.go Records deferred CI enforcement.
.github/​workflows/​step-name-alignment.lock.yml Rolls back Claude runtime and metadata.
.github/​workflows/​static-analysis-report.lock.yml Rolls back Claude runtime and metadata.
.github/​workflows/​smoke-claude-sub-agents.lock.yml Rolls back sub-agent smoke-test runtime.
.github/​workflows/​smoke-claude-routed.lock.yml Rolls back routed smoke-test runtime.
.github/​workflows/​smoke-claude-routed-anthropic.lock.yml Rolls back both Claude installations.
.github/​workflows/​smoke-claude-dynamic.lock.yml Rolls back both Claude installations.
.github/​workflows/​smoke-claude-copilot.lock.yml Rolls back Claude/Copilot smoke-test runtime.
.github/​workflows/​smoke-claude-copilot-auto.lock.yml Rolls back Claude/Copilot auto-test runtime.
.github/​workflows/​smoke-claude-auto.lock.yml Rolls back Claude auto-test runtime.
.github/​workflows/​semantic-function-refactor.lock.yml Rolls back refactoring-agent runtime.
.github/​workflows/​safe-output-health.lock.yml Rolls back health-monitor runtime.
.github/​workflows/​refiner.lock.yml Rolls back code-refiner runtime.
.github/​workflows/​org-health-report.lock.yml Rolls back organization-report runtime.
.github/​workflows/​lockfile-stats.lock.yml Rolls back statistics-agent runtime.
.github/​workflows/​instructions-janitor.lock.yml Rolls back instructions-janitor runtime.
.github/​workflows/​go-logger.lock.yml Rolls back logger-agent runtime.
.github/​workflows/​github-mcp-tools-report.lock.yml Rolls back tools-report runtime.
.github/​workflows/​example-workflow-analyzer.lock.yml Rolls back workflow-analysis runtime.
.github/​workflows/​engine-conformance-claude.lock.yml Rolls back Claude conformance-test runtime.
.github/​workflows/​deployment-incident-monitor.lock.yml Rolls back incident-monitor runtime.
.github/​workflows/​delight.lock.yml Rolls back Delight-agent runtime.
.github/​workflows/​daily-vulnhunter-scan.lock.yml Rolls back vulnerability-scan runtime.
.github/​workflows/​daily-safeoutputs-git-simulator.lock.yml Rolls back Git-simulator runtime.
.github/​workflows/​daily-safe-outputs-conformance.lock.yml Rolls back safe-output conformance runtime.
.github/​workflows/​daily-grader-audit.lock.yml Rolls back grader-audit runtime.
.github/​workflows/​daily-elixir-credo-snippet-audit.lock.yml Rolls back Elixir-audit runtime.
.github/​workflows/​daily-choice-test.lock.yml Rolls back both Claude installations.
.github/​workflows/​daily-byok-ollama-test.lock.yml Rolls back Claude threat-detection runtime.
.github/​workflows/​daily-astrostylelite-markdown-spellcheck.lock.yml Rolls back spellcheck-agent runtime.

Review effort: Max (adaptive)

Comment thread pkg/linters/registry.go
walkfuncerrshadow.Analyzer,
wgdonenotdeferred.Analyzer,
writebytestring.Analyzer,
writefilepublicpermsensitive.Analyzer,

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.

The default make golint-custom flags now disable this unaudited heuristic; it remains registered and can be opted into explicitly. The final progress gate passed. Fixed in 4176f2a.

run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.29.20 --rootless
- name: Install Claude Code CLI
run: npm install -g @anthropic-ai/claude-code@2.1.331
run: npm install -g @anthropic-ai/claude-code@2.1.325

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.

The branch is merged with latest main, and the current PR diff contains no workflow-lock changes, so no Claude runtime rollback remains to restore (03b8bb0).

if len(call.Args) != modeIndex+1 || !isPublicPerm(pass, call.Args[modeIndex]) { //nolint:uncheckedsliceindex // modeIndex is 1 or 2 and the argument count is checked
return
}
sensitive := containsSensitive(pass, call.Args[0]) //nolint:uncheckedsliceindex // the argument count is checked above

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.

os.OpenFile now skips known constant flags without O_CREATE, while unknown flags remain conservatively checked. Added negative fixtures for O_RDONLY and zero flags. Fixed in 4176f2a.

Comment on lines +63 to +75
func isPublicPerm(pass *analysis.Pass, expr ast.Expr) bool {
var ident *ast.Ident
switch expr := astutil.UnwrapParenExpr(expr).(type) {
case *ast.Ident:
ident = expr
case *ast.SelectorExpr:
ident = expr.Sel
default:
return false
}
obj, ok := pass.TypesInfo.ObjectOf(ident).(*types.Const)
return ok && obj.Name() == "FilePermPublic" && obj.Pkg() != nil && obj.Pkg().Path() == "github.com/github/gh-aw/pkg/constants"
}

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.

Permission expressions are now resolved for references to FilePermPublic and their final constant mode is checked. Added conversion, OR, and restrictive-mask fixtures. Fixed in 4176f2a.

match := func(s string) bool {
s = strings.ToLower(s)
for _, term := range terms {
if strings.Contains(s, term) {

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.

Word-boundary matching now excludes ordinary lockFile/author names, selector names, and call identifiers. README and negative fixtures are updated. Fixed in d0bf127.

@github-actions

Copy link
Copy Markdown
Contributor

🛠️ Agentic Maintenance updated this pull request branch.

View workflow run

@gh-aw-bot

Copy link
Copy Markdown
Collaborator Author

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/linters/writefilepublicpermsensitive/testdata/src/example/example_test.go:9): address unresolved feedback - Review comment
  3. Review (pkg/linters/writefilepublicpermsensitive/writefilepublicpermsensitive.go:92): address unresolved feedback - Review comment
  4. Review (pkg/linters/writefilepublicpermsensitive/writefilepublicpermsensitive.go:82): address unresolved feedback - Review comment
  5. Review (pkg/linters/writefilepublicpermsensitive/testdata/src/example/example.go:24): address unresolved feedback - Review comment
  6. Review (pkg/linters/registry.go:223): address unresolved feedback - Review comment
  7. Review (.github/workflows/step-name-alignment.lock.yml:699): address unresolved feedback - Review comment
  8. Review (pkg/linters/writefilepublicpermsensitive/writefilepublicpermsensitive.go:44): address unresolved feedback - Review comment
  9. Review (pkg/linters/writefilepublicpermsensitive/writefilepublicpermsensitive.go:75): address unresolved feedback - Review comment
  10. Review (pkg/linters/writefilepublicpermsensitive/writefilepublicpermsensitive.go:82): address unresolved feedback - Review comment

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "cf48fcb27fa4e0172364d49958bb602d5ea64bba",
  "kind": "requested",
  "schema_version": "1",
  "state": "4f4c6d039338fe53dc5fd4b8ffa30d720614f6df61efe302c4e15d62d5c51f0a",
  "work": [
    "2511b2301ec3e2fbe5318a68f6e7bee2dd705bcaafb4919292e97ffc4b644ddd",
    "2e6aa1440aa9d5539b8e3b5113e9eb38ef274100b5792f0b2c5b8abfaf64360a",
    "864031d4a3bae9a2feff3d3fb7638b3d5b67fd5f440be4743ac9dd2ef9372aef",
    "982e84437f5c87f85b75e8e7d5f2191fd456df9646f233c414d0072e4843594d",
    "b09c2e2f3943f47d07a76fc7f309b21b1e925753e266d39fe86b62fc68534e3e",
    "c034133635eaf929b621ee1806424bdbb762b7c20dce7c5d815318364cb22140",
    "cfb6579425ef78c2ca979e6607d7c637c3f05f44e28aecfdf05219d4cff493e5",
    "e0e839b2c582a2c87d33ef2e8893d4dda8c67e025c18c16a03918541a82d03c5",
    "f43815d6f7e695ee4bf51d51b3380f99b413ce3a4121ebfd8ea16478de6fd531"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 7K · history
Comment /souschef to run again

gh-aw-bot and others added 3 commits November 24, 2026 19:26
…ritefilepublicperm-sensitive-80a56ecc

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

[linter-miner] Add sensitive public file permission linter

3 participants