Skip to content

ci: Switch workflows to pull_request event#341

Open
ekanshibu wants to merge 1 commit intoqualcomm:developmentfrom
anankulk:pull_request_target
Open

ci: Switch workflows to pull_request event#341
ekanshibu wants to merge 1 commit intoqualcomm:developmentfrom
anankulk:pull_request_target

Conversation

@ekanshibu
Copy link
Copy Markdown
Contributor

Replace pull_request_target with pull_request in PR workflows to follow GitHub security practices and avoid elevated permissions during PR validation.

Replace pull_request_target with pull_request in PR workflows
to follow GitHub security practices and avoid elevated
permissions during PR validation.

Signed-off-by: Anand Kulkarni <anankulk@qti.qualcomm.com>
@njjetha
Copy link
Copy Markdown
Contributor

njjetha commented Apr 24, 2026

moving from pull_request_target to pull_request would not have access to secrets you need to refactor workflow
https://github.qualcomm.com/pages/osdo/handbook/qcom-github/docs/github-actions-pull-request-target

pkg-repo: ${{vars.PKG_REPO_GITHUB_NAME}}
pr-number: ${{github.event.pull_request.number}}
secrets:
TOKEN: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It will not have access to secrets.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@simonbeaudoin0935 based on the recent guidelines to move to pull_request from pull_Request_target do you have any plans to change this workflow?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ekanshibu Simply remove the line 38-39, the service bot secret is not used anymore in this case!

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.

4 participants