Skip to content

chore: add license review to CI #12981

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

Merged
merged 25 commits into from
Apr 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
always run report
  • Loading branch information
sreya committed Apr 17, 2024
commit fcde457e97596f8fe4edcd1ebcaf8d10429e3e82
12 changes: 9 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -916,9 +916,15 @@ jobs:
vulnerability-check: false
- name: "Report"
# make sure this step runs even if the previous failed
if: ${{ failure() && steps.review.conclusion == 'failure' }}
if: always()
shell: bash
env: # store comment HTML data in an environment variable
env:
VULNERABLE_CHANGES: ${{ steps.review.outputs.invalid-license-changes }}
run: |
echo "$VULNERABLE_CHANGES" | jq
if [ -n "$VULNERABLE_CHANGES ]; then
echo "Invalid or unknown licenses detected, contact sreya to ensure your added dependency falls under one of our allowed licenses."
echo "$VULNERABLE_CHANGES" | jq
exit 1
else
echo "No incompatible licenses detected"
fi