Skip to content

fix: resolve gosec G404 and G101 findings - #1143

Draft
skevetter wants to merge 1 commit into
mainfrom
devsy/auto/3ac782f8
Draft

fix: resolve gosec G404 and G101 findings#1143
skevetter wants to merge 1 commit into
mainfrom
devsy/auto/3ac782f8

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Task 3ac782f8-eba2-48a7-b49c-70bd8d3e1476. Replace math/rand with crypto/rand-backed helpers in pkg/random and pkg/util/rand.go (G404 weak randomness); annotate non-credential constants in pkg/image/auth.go (service account token file path) and pkg/config/context.go (context option names) with justified //nolint:gosec for G101. Verification: gosec clean on pkg/random + pkg/util; golangci-lint run on all four touched packages shows no new findings (remaining are pre-existing on untouched lines); scoped go test of touched packages and all consumers passes; full task cli:test fails only in hack/sign_commit and pkg/git, confirmed pre-existing on base branch.

Replace math/rand with crypto/rand in pkg/random and pkg/util (G404). Annotate non-credential constants flagged as hardcoded credentials in pkg/image/auth.go and pkg/config/context.go (G101).
@netlify

netlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev ready!

Name Link
🔨 Latest commit bdf30d3
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a8ed675f861b0000861e779
😎 Deploy Preview https://deploy-preview-1143--devsydev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit bdf30d3
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a8ed6756ff2e800088864b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant