fix: add --no-deps to pip install in composite actions#105
Conversation
|
This PR enhances the security of the CI/CD pipeline by hardening dependency installation commands across multiple workflows and composite actions. The changes aim to mitigate supply chain attacks by ensuring more deterministic and safer package installations. Files Changed AnalysisThe pull request modifies 7 YAML configuration files within the
Architecture & Impact Assessment
graph TD
subgraph "Security Hardening"
A["pip install"] --> B["pip install --no-deps"]
C["npm ci/install"] --> D["npm ci/install --ignore-scripts"]
E["go install @latest"] --> F["go install @version"]
end
subgraph "Affected Components"
G["api-tests action"] -.-> B
H["ui-tests action"] -.-> D
I["branch-suggestion workflow"] -.-> D
J["ci-test workflow"] -.-> D
K["golangci workflow"] -.-> F
L["gotest workflow"] -.-> F
M["govulncheck workflow"] -.-> F
end
Scope Discovery & Context ExpansionWhile the PR title focuses on the The primary impact is on build determinism and security. A potential side effect is that builds could fail if required transitive dependencies are not explicitly declared in Metadata
Powered by Visor from Probelabs Last updated: 2026-04-01T06:11:28.945Z | Triggered by: pr_updated | Commit: fd6ee1f 💡 TIP: You can chat with Visor using |
✅ Security Check PassedNo security issues found – changes LGTM. ✅ Performance Check PassedNo performance issues found – changes LGTM. ✅ Security Check PassedNo security issues found – changes LGTM. \n\n \n\n✅ Performance Check PassedNo performance issues found – changes LGTM. \n\nQuality Issues (1)
Powered by Visor from Probelabs Last updated: 2026-04-01T06:11:14.719Z | Triggered by: pr_updated | Commit: fd6ee1f 💡 TIP: You can chat with Visor using |
- api-tests: pip install → pip install --no-deps - gotest.yaml: gotestsum@latest → pinned to v1.13.0 - govulncheck.yaml: govulncheck@latest → pinned to v1.1.4 - golangci.yaml: goimports@latest → pinned to v0.43.0 - branch-suggestion.yml: npm install → npm install --ignore-scripts, visor pinned to v0.1.185 - ci-test.yml: npm ci → npm ci --ignore-scripts - ui-tests/action.yaml: npm ci → npm ci --ignore-scripts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8e6bec7 to
fd6ee1f
Compare
Summary
--no-depstopip install -r requirements.txtin the api-tests composite actionsetup.pyof transitive dependenciesNotes
Other unsafe install patterns were found but are out of scope for this PR:
go install ...@latestin gotest, govulncheck, golangci workflowsnpm installin branch-suggestion workflowTest plan
--no-deps(all direct dependencies must be listed in requirements.txt)🤖 Generated with Claude Code