Skip to content

Allow scheduled dependency advisory reports to create issues - #2

Closed
schreck61 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-dependency-advisories-job
Closed

schreck61 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-dependency-advisories-job

Conversation

Copilot AI commented Oct 19, 2026 •

Copy link
Copy Markdown

The scheduled advisory check failed when audit-check tried to publish an issue for unmaintained-dependency warnings, but the job token lacked issue write access.

  • Change: Grant the advisory job issues: write while retaining its existing checks: write permission.
  • Configuration:
    permissions:
      checks: write
      issues: write

Co-authored-by: schreck61 <2614386+schreck61@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job dependency advisories Allow scheduled dependency advisory reports to create issues Oct 19, 2026
Copilot AI requested a review from schreck61 October 19, 2026 17:45
@schreck61

Copy link
Copy Markdown
Owner

Superseded by a2d464b on main, which grants the audit job issues: write as proposed here.

The diagnosis in this PR was correct, and confirmed against the run logs: the 2026-10-19 and 2026-10-26 sweeps both failed on nothing but POST /issues returning "Resource not accessible by integration", while cargo audit itself reported no vulnerabilities.

This branch could not be merged as-is because it forked before 8bfe66f: taking it would have reverted the three zbus-family advisory ignores (RUSTSEC-2026-0370/0371/0372) and the comment documenting them. Only the permission line carried over.

Two details were adjusted against the action's source at the pinned SHA. Issues are filed on the schedule event only -- push and pull_request post a check run instead -- so the permission comment now says so. And reportIssues returns without failing the job, so a new advisory arrives as a deduplicated issue on a green run rather than a red build; the ignore-list comment now records that, since it replaces the previous signal.

@schreck61 schreck61 closed this Nov 7, 2026
@schreck61
schreck61 deleted the copilot/fix-dependency-advisories-job branch November 9, 2026 19:25
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.

2 participants