Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-Enable Vulnerability 3p Scanning Workflow #42049

Merged
merged 13 commits into from
May 17, 2023

Conversation

sealesj
Copy link
Contributor

@sealesj sealesj commented May 15, 2023

After migrating to standalone yaml (rather than included as a part of the scorecards yaml), the vuln scanning workflow needs to be re-enabled with sarif results uploading to the dashboard under the security tab. A successful test run of this workflow can be seen at https://github.com/flutter/engine/actions/runs/4982210161 (in linked run, fails to upload SARIF file given lack of permissions on any branch besides default)

This change also adds use of cwd in python subprocess commands rather than using directory prefix in command string.

Addresses b/280294707

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@sealesj sealesj requested a review from zanderso May 16, 2023 15:37
Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

It looks like the print here:

https://github.com/flutter/engine/pull/42049/files#diff-82b85fc4aa8f22454ed98a85b42812e7aa8eec90257b998afe53126639b5d50aR240

Is not logging anything useful. It looks like the string error.output is always empty. That print should maybe log the command that failed, and it would be good to figure out why the stdout and stderr from the subprocess isn't being printed.

@sealesj
Copy link
Contributor Author

sealesj commented May 16, 2023

Merging this PR to get the scan running, but opened a bug to track the subprocess error output at b/282959127

@sealesj sealesj added the autosubmit Merge PR when tree becomes green via auto submit App label May 16, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 16, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented May 16, 2023

auto label is removed for flutter/engine, pr: 42049, due to - The status or check suite Mac mac_clang_tidy has failed. Please fix the issues identified (or deflake) before re-applying this label.

  • The status or check suite Linux linux_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Linux Android clang-tidy has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Linux Host clang-tidy has failed. Please fix the issues identified (or deflake) before re-applying this label.

@sealesj sealesj added the autosubmit Merge PR when tree becomes green via auto submit App label May 17, 2023
@auto-submit auto-submit bot merged commit 47fd496 into flutter:main May 17, 2023
@sealesj sealesj deleted the vuln-scan-sarif branch May 17, 2023 16:29
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 17, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 17, 2023
…127041)

flutter/engine@400a26a...47fd496

2023-05-17 [email protected] Re-Enable Vulnerability 3p Scanning Workflow (flutter/engine#42049)
2023-05-17 [email protected] Roll Skia from c3473c32bb35 to ffa425bacfc4 (14 revisions) (flutter/engine#42095)
2023-05-17 [email protected] [Impeller] Turned on wide gamut support by default. (#39801) (flutter/engine#41965)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
CaseyHillers pushed a commit to CaseyHillers/flutter that referenced this pull request May 24, 2023
…lutter#127041)

flutter/engine@400a26a...47fd496

2023-05-17 [email protected] Re-Enable Vulnerability 3p Scanning Workflow (flutter/engine#42049)
2023-05-17 [email protected] Roll Skia from c3473c32bb35 to ffa425bacfc4 (14 revisions) (flutter/engine#42095)
2023-05-17 [email protected] [Impeller] Turned on wide gamut support by default. (flutter#39801) (flutter/engine#41965)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants