Skip to content

VNX-GH-012: Hard-coded container registry credentials

A job container or service declares a literal password instead of a secret reference.

Updated 02 Nov 2026Markdown

Credentials written into the workflow file are visible to anyone who can read the repository and persist in git history.

Severity High
Confidence high
CWE CWE-798
Command vulnetix gha workflows, vulnetix gha audit

Remediation

Store the password as an Actions secret and reference it as ${{ secrets.NAME }}. Rotate the exposed credential.

Run only this rule

vulnetix gha workflows --rule VNX-GH-012

Scoring

CWSS vector at the rule’s default severity: CWSS:1.0/TI:H/AP:A/AL:A/IC:N/FC:LT/RP:N/RL:A/AV:I/AS:N/IN:A/SC:A/BI:H/DI:H/EX:H/EC:N/P:W. A finding whose severity the repository’s settings moved is scored at its adjusted severity.

All rules: GitHub rules.

esc
↑ ↓ move↵ openSearches in your browser. A key like autonomy.max or a code like threshold_required jumps straight to it.