Preface¶
GitHub Actions workflows are a primary entry point for supply chain attacks. Developers often introduce risks due to configuration negligence, such as using unpinned Action versions, granting overly broad permissions, or outputting sensitive information in scripts. dsh-ci-guard is a scanning tool designed to inspect GitHub Actions workflows. It aims to identify these exploitable configurations and help fix potential security vulnerabilities.
Plugin Positioning¶
Maintained by feely0208, this plugin belongs to the admin-security category. Its core value lies in assisting developers in identifying security configuration flaws within workflows through automated checks.
Core Features¶
The plugin primarily performs the following checks:
- Checks for unpinned Action versions
- Checks for overly broad permissions
- Checks for script injection
- Checks for echo secrets
- Lists rules and references
Installation and Activation¶
The installation command is as follows:
dsh plugin --profile web add @deepwhale-cn/dsh-ci-guard
Or run directly via CLI:
npx @deepwhale-cn/dsh-ci-guard
Typical Usage¶
Once installed, you can use it via the following commands:
dsh-ci-guard # Scan the current directory
dsh-ci-guard --demo # View detection results
dsh-ci-guard --list-rules # List rules and references
dsh-ci-guard --html r.html # Generate an HTML report
Limitations and Notes¶
Please note the following when using this tool:
- Parsing Method: The plugin uses regular expressions to match YAML rather than employing a true parser. If the YAML syntax is unusual (e.g., contains anchors or multi-documents), detection may be missed.
- Coverage: It only covers GitHub Actions and does not include GitLab CI or Jenkins.
- Manual Judgment: The mere presence of
pull_request_targetdoes not necessarily constitute a danger; manual judgment is required based on the context. - Legal Liability: Users must comply with the laws and regulations of their region and assume full responsibility for any consequences resulting from the use of this project.
Conclusion¶
This tool is suitable for developers who need to manage CI/CD security risks within the DeepSeek Harness environment. For more plugins, please consult the DSH Plugin Directory or visit the GitHub Repository.