You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
actions/setup/js/check_skip_if_match.cjs and actions/setup/js/check_skip_if_no_match.cjs share the same control flow for validating env vars, running the GitHub search, and writing the denial summary. The only meaningful differences are the threshold comparison, env var name, output key, and message text.
🔍 Duplicate Code Detected: skip-if query handlers
Analysis of commit 9866d47
Summary
actions/setup/js/check_skip_if_match.cjsandactions/setup/js/check_skip_if_no_match.cjsshare the same control flow for validating env vars, running the GitHub search, and writing the denial summary. The only meaningful differences are the threshold comparison, env var name, output key, and message text.Duplication Details
Pattern: skip-query threshold handlers
actions/setup/js/check_skip_if_match.cjs(lines 9-54)actions/setup/js/check_skip_if_no_match.cjs(lines 9-54)Impact Analysis
Refactoring Recommendations
Extract a shared
runSkipQueryCheckhelper.Consolidate the shared search/validation flow into a small factory.
Implementation Checklist
Analysis Metadata
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.