File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
project_name/.github/workflows Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -196,3 +196,35 @@ jobs:
196196 [ $((result & 16)) -ne 0 ] && echo "::warning ::Pylest convention(s) found"
197197 [ $((result & 32)) -ne 0 ] && echo "::error ::Pylest usage error"
198198 exit $((result & 35))
199+
200+ check-licenses:
201+ runs-on: ubuntu-latest
202+ steps:
203+ - name: Checkout code
204+ uses: actions/checkout@v3
205+
206+ - name: Install Rust
207+ uses: actions-rs/toolchain@v1
208+ with:
209+ profile: minimal
210+ toolchain: stable
211+ override: true
212+
213+ - name: Install Feluda
214+ run: cargo install feluda
215+
216+ - name: Check licenses
217+ run: feluda --ci-format github --fail-on-restrictive --fail-on-incompatible
218+
219+ - name: Generate compliance files
220+ run: |
221+ echo "1" | feluda generate # Auto-select NOTICE file
222+ echo "2" | feluda generate # Auto-select THIRD_PARTY_LICENSES file
223+
224+ - name: Upload compliance artifacts
225+ uses: actions/upload-artifact@v3
226+ with:
227+ name: license-compliance
228+ path: |
229+ NOTICE
230+ THIRD_PARTY_LICENSES.md
You can’t perform that action at this time.
0 commit comments