Repository navigation
feat: add anchore/scan-action - #30
Merged
Merged
Conversation
# Security Review: anchore/scan-action **Date**: October 5, 2026 **Verdict**: ✅ SAFE TO USE (with minor caution) **Tag**: v7.4.2 **SHA**: 27805bf3b4e84b4a5c980df22ed233c00390a439 --- ## Quick Summary | Category | Status | Notes | |----------|--------|-------| | Malicious Code | ✅ None Found | No backdoors, obfuscation, or suspicious patterns | | Dependency Issues |⚠️ High severity | Run `npm audit fix` before production | | External Scripts |⚠️ Low Risk | Downloads `install.sh` from Anchore repo (see below) | | Input Validation | ✅ Good | All inputs validated | | Documentation | ✅ Excellent | Comprehensive README, tests, examples | --- ## Risk: External install.sh Script **Location**: `action.js` lines 79-87, 107-114 The action downloads and executes this script: ```javascript const installScriptUrl = `https://raw.githubusercontent.com/anchore/grype/${ref}/install.sh`; ``` **Risk Assessment**: LOW but worth noting - **Why it's safe**: Script comes from official `anchore/grype` repository with version pinning - **Why it's a concern**: If the Grype repo is compromised, attackers could inject malicious code - **Attack vector**: Supply chain attack via GitHub repository compromise **Mitigation Factors**: 1. Version sha pinning 2. GitHub's infrastructure protects against unauthorized commits 3. Anchore is a well-established security company 4. The script is only used to download/extract Grype binary (no complex logic) **Recommendation**: - Pin to specific commit SHA in production workflows - Monitor the Grype repository for unusual activity --- ## Other Findings ### Good Security Practices - GitHub Actions security hardening (no unused permissions) - Dependabot configured for dependency updates - CodeQL integration for security scanning - No hardcoded secrets or credentials - Input validation for all parameters ### Dependency Vulnerabilities ``` 2 high severity npm vulnerabilities found: - brace-expansion: DoS vulnerabilities - undici: HTTP header injection vulnerabilities ``` --- ## Conclusion This action is developed and maintained by Anchore, a reputable security company. The external script execution is the primary concern, but it's mitigated by version pinning and the official nature of the Grype repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security Review: anchore/scan-action
Date: October 5, 2026
Verdict: ✅ SAFE TO USE (with minor caution)
Tag: v7.4.2
SHA: 27805bf3b4e84b4a5c980df22ed233c00390a439
Quick Summary
npm audit fixbefore productioninstall.shfrom Anchore repo (see below)Risk: External install.sh Script
Location:
action.jslines 79-87, 107-114The action downloads and executes this script:
Risk Assessment: LOW but worth noting
anchore/gryperepository with version pinningMitigation Factors:
Recommendation:
Other Findings
Good Security Practices
Dependency Vulnerabilities
Conclusion
This action is developed and maintained by Anchore, a reputable security company. The external script execution is the primary concern, but it's mitigated by version pinning and the official nature of the Grype repository.
This review was assisted by AI.