platform icon indicating copy to clipboard operation
platform copied to clipboard

Workflow uses `secrets.R2_ACCESS_KEY_ID` on a `pull_request` trigger

Open repobilitycom opened this issue 6 months ago • 3 comments

Code-quality scan: hcengineering/platform

Score: 70/100 (B) · 98 findings · scanned 2026-05-20 01:59 UTC · 60,404 LOC

Severity Count
CRITICAL 28
HIGH 34
MEDIUM 6
LOW 13

📊 Full filterable report · scorecard

Top findings

  1. CRITICAL MINED018 — Unsafe Deserialization Pickle dev/import-tool/src/index.ts:184 · CWE-502 · ✓ Repobility
  2. CRITICAL SEC116 — Ruby YAML.load / Marshal.load on untrusted input dev/import-tool/src/index.ts:184 · A08:2021 Software & Data Integrity Failures
  3. CRITICAL SEC079 — Python: yaml.load without SafeLoader dev/import-tool/src/index.ts:184 · A05:2021 Security Misconfiguration
  4. CRITICAL MINED116 — Workflow uses secrets.R2_SECRET_ACCESS_KEY on a pull_request trigger .github/workflows/main.yml:921 · ✓ Repobility
  5. CRITICAL MINED116 — Workflow uses secrets.R2_ACCESS_KEY_ID on a pull_request trigger .github/workflows/main.yml:920 · ✓ Repobility

Security note: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your SECURITY.md policy or open a private security advisory instead. We're happy to close this and re-submit privately.


Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/1a8155c4-002f-4a0f-bd44-ca3a6ed02b15/

repobilitycom avatar May 20 '26 02:05 repobilitycom

Connected to Huly®: UBERF-16460

huly-github-staging avatar May 20 '26 02:05 huly-github-staging

Thanks for the report. The flagged R2 upload steps live in jobs that only run for release tags, so they never execute for pull_request events, and the import tool uses js-yaml 4, whose load() is safe by default; the other top findings refer to Ruby and Python APIs that do not apply to this TypeScript code. As this is an automated scan with no actionable findings, this looks not applicable, so the issue could be closed.

MichaelUray avatar Oct 17 '26 21:10 MichaelUray

@repobilitycom — as explained above, this does not look like something that can be addressed in the codebase. Could you please close this issue if you agree? If you think there is a code change needed after all, please describe what should change.

MichaelUray avatar Oct 20 '26 20:10 MichaelUray