Skip to content

PDP-1182 SECCMP-1797: Switch to pull_request trigger and add top-level permissions#584

Open
GAdityaVarma wants to merge 1 commit intomainfrom
fix/SECCMP-1797-switch-to-pull-request
Open

PDP-1182 SECCMP-1797: Switch to pull_request trigger and add top-level permissions#584
GAdityaVarma wants to merge 1 commit intomainfrom
fix/SECCMP-1797-switch-to-pull-request

Conversation

@GAdityaVarma
Copy link
Copy Markdown

SECCMP-1797: Switch from pull_request_target to pull_request

This workflow only validates JIRA IDs in the PR title. It does not need write permissions or secrets access.

Switching to pull_request eliminates the PwnRequest attack surface entirely - no write token, no secrets exposure, regardless of what input is provided.

Also adds explicit permissions: contents: read at the workflow level.

Ref: Preventing pwn requests

This workflow only validates JIRA IDs in the PR title. It does not
need write permissions or secrets access. Switching to pull_request
eliminates the PwnRequest attack surface entirely for this repo.

Also adds explicit top-level permissions: contents: read.
Copilot AI review requested due to automatic review settings April 8, 2026 13:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the JIRA ID validation workflow by switching its trigger from pull_request_target to pull_request, eliminating write-token/secrets exposure for forked PRs while keeping the workflow’s behavior focused on PR title validation.

Changes:

  • Switch workflow trigger from pull_request_target to pull_request.
  • Add explicit top-level permissions: contents: read to minimize GITHUB_TOKEN scope.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GAdityaVarma GAdityaVarma changed the title SECCMP-1797: Switch to pull_request trigger and add top-level permissions PDP-1182 SECCMP-1797: Switch to pull_request trigger and add top-level permissions Apr 8, 2026
@SameeraPriyathamTadikonda
Copy link
Copy Markdown
Contributor

@GAdityaVarma We can remove these workflows. Also, please create PRs to develop branch instead.

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.

3 participants