Skip to content

[Aikido] AI Fix for Using unsafe GitHub Actions trigger may allow privilege escalation via CI/CD - #111

Closed
aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/aikido-security-sast-86105560-5sr8
Closed

[Aikido] AI Fix for Using unsafe GitHub Actions trigger may allow privilege escalation via CI/CD#111
aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/aikido-security-sast-86105560-5sr8

Conversation

@aikido-autofix

Copy link
Copy Markdown

Notice something off? Reach out to @securitymirco

This patch mitigates privilege escalation via CI/CD in the 'CLA Assistant' workflow by replacing the 'pull_request_target' trigger with 'pull_request' to prevent untrusted code execution with elevated permissions.

Aikido used AI to generate this PR.

Medium confidence: Aikido has validated similar fixes and observed positive outcomes. Validation is required.

@aikido-autofix aikido-autofix Bot added the aikido-autofix Label created by Aikido AutoFix label Aug 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor



Thank you for your submission - we really appreciate it ❤️. We kindly ask that you sign a Contributor License Agreement before we can accept your contribution.

You can sign the CLA by posting a pull request comment containing the same as the text below.

If you are contributing on behalf of a company, the company should contact us to sign a Corporate Contributor License Agreement, via hi@dash0.com.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@securitymirco

Copy link
Copy Markdown

Closing as a false positive.

pull_request_target is only exploitable when the workflow checks out and executes
PR head code, or interpolates untrusted input into a shell step. This workflow does
neither — it has no actions/checkout, and just delegates to
dash0hq/.github/.github/workflows/cla.yaml@main, which runs a single SHA-pinned
action (contributor-assistant/github-action@ca4a40a7, v2.6.1). The only untrusted
input is github.event.comment.body, used in an == comparison inside an if:.
There is no untrusted-code execution path to escalate through.

The proposed change would also break CLA enforcement in two ways:

  1. The reusable workflow gates its only step on
    ... || github.event_name == 'pull_request_target'. Switching to pull_request
    means that condition no longer matches, so the CLA step is silently skipped on
    opened/closed/synchronize — no failure, just no enforcement.

  2. pull_request from a fork gets a read-only GITHUB_TOKEN and

@github-actions github-actions Bot locked and limited conversation to collaborators Aug 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

aikido-autofix Label created by Aikido AutoFix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant