-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Description / Steps to reproduce the issue
ASF Infra Team has found a Policy Violation in the GitHub Actions Workflow for our NuttX Repo. This needs to be fixed within 60 days:
Subject: GitHub Actions workflow policy violations in nuttx
From: Apache Infrastructure <users@infra.apache.org>
The repository: nuttx has been scanned.
Our analysis has found that the following GitHub Actions workflows need remediation:
Pull Request Labeler: `pull_request_target` was found as a workflow trigger. see https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=321719166#GitHubActionsSecurity-Buildstriggeredwithpull_request_target, for more details
For more information on the GitHub Actions workflow policy, visit:
https://infra.apache.org/github-actions-policy.html
Please remediate the above as soon as possible.
If after after 60 days these problems are not addressed, we will turn off builds
Sorry @simbit18: Did we change pull_request_target recently? What's the impact if we remove it? Thanks!
Update: pull_request_target is used only in the Labeler Workflow below. Will it work with the safer pull_request trigger?
https://github.com/apache/nuttx/blob/master/.github/workflows/labeler.yml#L17
Update 2: pr-size-labeler says that we should use (unsafe) pull_request_target instead of (safer) pull_request. This seems to contradict the ASF Infra Guidance?
https://github.com/CodelyTV/pr-size-labeler/blob/main/README.md
Replace
on: [pull_request]withon: [pull_request_target]when using forks and when you don't want any PR to be able to execute code (more info: GitHub docs).
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
GitHub CI
NuttX Version
master
Issue Architecture
[Arch: all]
Issue Area
[Area: Build System]
Host information
No response
Verification
- I have verified before submitting the report.