-
Notifications
You must be signed in to change notification settings - Fork 0
fix(lanes): green mutation-testing, trunk-check, a11y keyboard, scorecard, and quality-gate unit tests #719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f895f27
7528edf
7d5f3f2
77c758a
37b2b0a
3c85657
fd392dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,6 +163,12 @@ pub fn spawn_speculation_task( | |
| cache: CoalesceCache, | ||
| thermal_gate: Arc<dyn crate::ThermalGate>, | ||
| ) { | ||
| // Best-effort background task. The hypervisor constructor may run outside | ||
| // a Tokio runtime (sync CLI wiring, unit tests); without a reactor there | ||
| // is nothing to spawn onto, so skip silently rather than panic. | ||
| if tokio::runtime::Handle::try_current().is_err() { | ||
| return; | ||
| } | ||
|
Comment on lines
+169
to
+171
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: The guard permanently disables speculation when Severity Level: Major
|
||
| tokio::spawn(async move { | ||
| loop { | ||
| tokio::time::sleep(SPECULATION_INTERVAL).await; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: KooshaPari/sharecli
Length of output: 245
🏁 Script executed:
Repository: KooshaPari/sharecli
Length of output: 2594
Scope
security-events: writeto the Scorecard job.scorecard-actiononly needscontents: read, whilegithub/codeql-action/upload-sarifneedssecurity-events: write. The workflow-level permission grantssecurity-events: writeto every job in this workflow and any future jobs. Movesecurity-events: writeunderjobs.analysis.permissionsand keep only the Scorecard job’s required read permissions at the workflow level or job level as appropriate.🧰 Tools
🪛 zizmor (1.29.0)
[warning] 25-25: overly broad permissions (excessive-permissions): security-events: write is overly broad at the workflow level
(excessive-permissions)
🤖 Prompt for AI Agents
Source: Linters/SAST tools