Skip to content

[plan] Add gosec to automated dependency update configuration #12185

@github-actions

Description

@github-actions

Objective

Add gosec to Dependabot or Renovate configuration for automatic security tool updates.

Context

From discussion #12003: Ensure gosec stays up-to-date automatically to receive latest security checks and performance improvements.

Approach

  1. Check if project uses Dependabot or Renovate
  2. If Dependabot (.github/dependabot.yml):
- package-ecosystem: "gomod"
  directory: "/"
  schedule:
    interval: "weekly"
  allow:
    - dependency-name: "github.com/securego/gosec/v2"
  1. If Renovate (renovate.json):
{
  "packageRules": [
    {
      "matchPackageNames": ["github.com/securego/gosec/v2"],
      "automerge": false,
      "labels": ["security", "dependencies"]
    }
  ]
}
  1. Add go.mod entry if not present
  2. Test configuration with a dry run

Files to Modify

  • Update: .github/dependabot.yml or renovate.json
  • Potentially update: go.mod (if gosec is CLI-only)

Acceptance Criteria

  • gosec added to dependency update config
  • Configuration tested and validated
  • Updates will be labeled appropriately
  • Documentation updated if needed

Priority

LOW - Automation improvement

Estimated Effort

10-15 minutes

AI generated by Plan Command for discussion #12003

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions