Introduce base HTTP abstractions and extract hook types to tigrbl_typing #39
Workflow file for this run
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
| # .github/workflows/v0.10.0_license-scan.yml | |
| name: v0.10.0-License-Scan | |
| on: | |
| pull_request: | |
| branches: [master, mono/dev] | |
| jobs: | |
| license-scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step: Check out repository | |
| - uses: actions/checkout@v4 | |
| # Step: Install uv | |
| - uses: astral-sh/setup-uv@v3 | |
| # Step: Run license scan | |
| - name: Run license scan | |
| id: scan | |
| continue-on-error: true | |
| run: | | |
| set -o pipefail | |
| ./scripts/license_scan.py | tee license_report.log | |
| # Step: Upload license report | |
| - name: Upload license report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: license-report | |
| path: license_report.log | |
| # Step: Summarize and annotate | |
| - name: Summarize and annotate | |
| if: always() | |
| run: | | |
| echo "## License Scan Report" >> "$GITHUB_STEP_SUMMARY" | |
| echo "" >> "$GITHUB_STEP_SUMMARY" | |
| cat license_report.log >> "$GITHUB_STEP_SUMMARY" | |
| if [[ "${{ steps.scan.outcome }}" == "failure" ]]; then | |
| echo "" >> "$GITHUB_STEP_SUMMARY" | |
| echo "### Disallowed licences" >> "$GITHUB_STEP_SUMMARY" | |
| grep '^ - ' license_report.log >> "$GITHUB_STEP_SUMMARY" | |
| grep '^ - ' license_report.log | while read -r line; do | |
| pkg=$(echo "$line" | sed 's/ - //') | |
| echo "::error title=Disallowed license::$pkg" | |
| done | |
| exit 1 | |
| fi | |
| shell: bash | |