Skip to content
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

ci: fix license check job #403

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Changes from all commits
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
27 changes: 14 additions & 13 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ jobs:
with:
go-version: "1.21.8"
cache: false
- run: make go.work
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: deps-changed
with:
Expand All @@ -213,22 +214,22 @@ jobs:
run: go install github.com/google/go-licenses@5348b744d0983d85713295ea08a20cca1654a45e
- name: check platform licenses
if: steps.deps-changed.outputs.platform == 'true'
run: >-
run: >
go-licenses check --disallowed_types=forbidden --include_tests
--ignore github.com/opentdf/platform/sdk
--ignore github.com/opentdf/platform/protocol
.
--ignore github.com/opentdf/platform/sdk
--ignore github.com/opentdf/platform/protocol
.
- name: check sdk licenses
if: steps.deps-changed.outputs.sdk == 'true'
run: >-
go-licenses check --disallowed_types=forbidden --include_tests
--ignore github.com/opentdf/platform/sdk
--ignore github.com/opentdf/platform/protocol
./sdk
run: >
go-licenses check --disallowed_types=forbidden --include_tests
--ignore github.com/opentdf/platform/sdk
--ignore github.com/opentdf/platform/protocol
./sdk
- name: check examples licenses
if: steps.deps-changed.outputs.examples == 'true'
run: >-
run: >
go-licenses check --disallowed_types=forbidden --include_tests
--ignore github.com/opentdf/platform/sdk
--ignore github.com/opentdf/platform/protocol
./examples
--ignore github.com/opentdf/platform/sdk
--ignore github.com/opentdf/platform/protocol
./examples
Loading