Skip to content

ci: add dedicated govulncheck issue-tracking workflow on main#56

Merged
maniSbindra merged 3 commits into
mainfrom
copilot/ci-add-govulncheck-workflow
Jun 6, 2026
Merged

ci: add dedicated govulncheck issue-tracking workflow on main#56
maniSbindra merged 3 commits into
mainfrom
copilot/ci-add-govulncheck-workflow

Conversation

Copilot AI commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

govulncheck findings were blocking PR merges in CI even when vulnerabilities were pre-existing and unrelated. This PR separates vulnerability tracking from PR gating by adding a dedicated workflow that runs on main and manages a single lifecycle-tracked issue.

  • Workflow scope and triggers

    • Added .github/workflows/govulncheck.yml
    • Triggers on:
      • push to main
      • nightly schedule
      • manual dispatch (workflow_dispatch)
    • Uses global concurrency to prevent race conditions during issue management.
  • Vulnerability detection behavior

    • Runs govulncheck -test -json ./...
    • Accepts expected govulncheck exit semantics (including findings) while still failing on unexpected execution errors.
    • Detects findings from JSON output and branches workflow behavior accordingly.
  • Automated issue lifecycle (deduplicated)

    • Ensures govulncheck label exists.
    • Finds existing open tracking issue by label + exact title match.
    • If findings exist: create or update that single issue using --body-file.
    • If findings are cleared: auto-close the existing tracking issue with a resolution comment.
  • Repository convention alignment

    • SHA-pinned actions.
    • ubuntu-24.04.
    • actions/checkout with persist-credentials: false.
    • Uses existing Task/Go setup patterns used by current workflows.
concurrency:
  group: govulncheck-issue-tracker
  cancel-in-progress: true

env:
  ISSUE_TITLE: "govulncheck: vulnerabilities detected on main"
  ISSUE_LABEL: govulncheck

Copilot AI changed the title [WIP] Add govulncheck workflow to auto-create issues for detected vulnerabilities ci: add dedicated govulncheck issue-tracking workflow on main Jun 6, 2026
Copilot AI requested a review from maniSbindra June 6, 2026 08:15

@maniSbindra maniSbindra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good. The failing govulncheck is not due to this PR but in main

@maniSbindra maniSbindra marked this pull request as ready for review June 6, 2026 08:26
@maniSbindra maniSbindra merged commit edb7a50 into main Jun 6, 2026
12 of 13 checks passed
@maniSbindra maniSbindra deleted the copilot/ci-add-govulncheck-workflow branch June 6, 2026 08:27
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.

ci: add govulncheck workflow to auto-create issues for detected vulnerabilities

2 participants