Skip to content

Remove workflow_dispatch to fix CodeQL cache poisoning - #73

Merged
albertompe merged 2 commits into
mainfrom
internal/code-scanning-alerts
Sep 2, 2026
Merged

Remove workflow_dispatch to fix CodeQL cache poisoning#73
albertompe merged 2 commits into
mainfrom
internal/code-scanning-alerts

Conversation

@albertompe

@albertompe albertompe commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The E2E workflow was flagged by CodeQL (actions/cache-poisoning/poisonable-step) because the workflow_dispatch trigger has write access to the shared cache scope while the job executes untrusted code (Robin checkout from a PR-controlled ref).

Drop workflow_dispatch and keep only pull_request, which scopes the cache to the PR branch (the pattern CodeQL considers safe), closing all three alerts. With the risky trigger gone, re-enable the Go cache (cache: true) for faster PR runs.

On-demand runs are still possible via a draft PR, and the target Robin branch can be selected with a 'robin-ref:' line in the PR body. Parallelism is now driven by the E2E_TEST_PARALLEL_PROCESSES repository variable (defaults to 2), and the dead github.sha fallback in the concurrency group is removed.

Checklist

albertompe and others added 2 commits September 1, 2026 15:53
The E2E workflow was flagged by CodeQL (actions/cache-poisoning/poisonable-step)
because the workflow_dispatch trigger has write access to the shared cache scope
while the job executes untrusted code (Robin checkout from a PR-controlled ref).

Drop workflow_dispatch and keep only pull_request, which scopes the cache to the
PR branch (the pattern CodeQL considers safe), closing all three alerts. With the
risky trigger gone, re-enable the Go cache (cache: true) for faster PR runs.

On-demand runs are still possible via a draft PR, and the target Robin branch can
be selected with a 'robin-ref:' line in the PR body. Parallelism is now driven by
the E2E_TEST_PARALLEL_PROCESSES repository variable (defaults to 2), and the dead
github.sha fallback in the concurrency group is removed.

Signed-off-by: Alberto Martínez Pérez <albertompe@ext.inditex.com>
@albertompe
albertompe merged commit 10f0018 into main Sep 2, 2026
9 of 10 checks passed
@albertompe
albertompe deleted the internal/code-scanning-alerts branch September 2, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant