-
Notifications
You must be signed in to change notification settings - Fork 20
Updated the pre flight check yml file #287
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
Open
sudeeshna21
wants to merge
1
commit into
qualcomm:qualcomm-software
Choose a base branch
from
sudeeshna21:preflight_check
base: qualcomm-software
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,25 @@ | ||
| name: Qualcomm Preflight Checks | ||
| name: QC Preflight Checks | ||
|
|
||
| on: | ||
| # FIXME: these branch targets might need to be revisited to make this work | ||
| # as we create new release branches. | ||
| pull_request_target: | ||
| branches: | ||
| - 'qualcomm-software' | ||
| - 'release/qualcomm-software/**' | ||
| pull_request: | ||
| branches: [qualcomm-software, release/qualcomm-software/**] | ||
| push: | ||
| branches: | ||
| - 'qualcomm-software' | ||
| - 'release/qualcomm-software/**' | ||
| branches: [qualcomm-software, release/qualcomm-software/**] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| jobs: | ||
| qcom-preflight-checks: | ||
| if: github.repository == 'qualcomm/cpullvm-toolchain' | ||
| uses: qualcomm/qcom-reusable-workflows/.github/workflows/qcom-preflight-checks-reusable-workflow.yml@v1.1.4 | ||
| preflight: | ||
| name: Run QC Preflight Checks | ||
| uses: qualcomm/qcom-reusable-workflows/.github/workflows/reusable-qcom-preflight-checks-orchestrator.yml@v2 | ||
| with: | ||
| # ✅ Preflight Checkers | ||
| repolinter: false # default: true | ||
| semgrep: true # default: true | ||
| copyright-license-detector: true # default: true | ||
| pr-check-emails: true # default: true | ||
| dependency-review: true # default: true | ||
| secrets: | ||
| SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
| enable-semgrep-scan: true | ||
| enable-dependency-review: true | ||
| enable-repolinter-check: false | ||
| enable-copyright-license-check: true | ||
| enable-commit-email-check: true | ||
| enable-commit-msg-check: false | ||
| enable-armor-checkers: false | ||
|
|
||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be removed--please either re-add this or explain why it isn't needed anymore (ex: if it is expected to work on forks out-of-the-box now, etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should work on forks - not sure why that was originally there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was added as one of the checks (semgrep? something else? I forget) required additional security permissions that require extra setup (and generally getting notifications about failed runs in forks is just noise when it is coming out of the main repo).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it was because the past workflow required an org level secret. We've removed that requirement
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is/was some Advanced Security/Dependency Graph setting: #23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah that is annoying. We added a check that skips the dep review if it's not enabled https://github.com/qualcomm/qcom-reusable-workflows/blob/main/.github/workflows/reusable-dependency-review.yml#L10