Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 15d28bb

Browse files
authored
Vuln scan on 3p deps triggered by label on PR (#42247)
This change allows for anyone submitting a PR which resolves a vulnerability found from the scanning action to be run on the PR to check for resolution if the label 'vulnerability patch' is applied to the PR. *List which issues are fixed by this PR. You must list at least one issue.* b/283970087 *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].* [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent 3184075 commit 15d28bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/third_party_scan.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branch_protection_rule:
55
push:
66
branches: [ main ]
7+
pull_request:
8+
types: [ labeled ]
79

810
# Declare default permissions as read only.
911
permissions: read-all
@@ -12,7 +14,9 @@ jobs:
1214
vuln-scan:
1315
name: Vulnerability scanning
1416
runs-on: ubuntu-20.04
15-
if: ${{ github.repository == 'flutter/engine' }}
17+
# run on flutter/engine push to main or PRs with 'vulnerability patch' label
18+
if: ${{ github.repository == 'flutter/engine' && (github.event_name == 'push' || github.event.label.name == 'vulnerability patch') }}
19+
1620
permissions:
1721
# Needed to upload the SARIF results to code-scanning dashboard.
1822
security-events: write

0 commit comments

Comments
 (0)