Rewrite python legacy APIs in golang #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
| --- | |
| # Copyright The Linux Foundation and each contributor to CommunityBridge. | |
| # SPDX-License-Identifier: MIT | |
| name: "License Compliance - Go Backend" | |
| on: | |
| push: | |
| branches: [main, dev] | |
| paths: | |
| - 'cla-backend-legacy/**' | |
| pull_request: | |
| branches: [main, dev] | |
| paths: | |
| - 'cla-backend-legacy/**' | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| license-check: | |
| name: License Compliance Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| # Check Go mod licenses | |
| - name: Install go-licenses tool | |
| run: go install github.com/google/go-licenses@latest | |
| - name: Check Go dependencies licenses | |
| working-directory: ./cla-backend-legacy | |
| run: | | |
| go mod download | |
| go-licenses check ./... | |
| continue-on-error: true | |
| - name: Generate license report | |
| working-directory: ./cla-backend-legacy | |
| run: | | |
| go-licenses report ./... --template .github/license-report.tpl > license-report.txt | |
| cat license-report.txt | |
| continue-on-error: true | |
| # Check for forbidden licenses | |
| - name: Check for forbidden licenses | |
| working-directory: ./cla-backend-legacy | |
| run: | | |
| echo "Checking for GPL, LGPL, AGPL licenses..." | |
| go-licenses check ./... | grep -i -E "(gpl|agpl)" && exit 1 || echo "No forbidden licenses found" | |
| continue-on-error: true | |
| - name: Upload license report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: go-backend-license-report | |
| path: cla-backend-legacy/license-report.txt |