Skip to content

Commit

Permalink
ci: fix license check job (#403)
Browse files Browse the repository at this point in the history
- add go.work
- changes run format
  • Loading branch information
strantalis authored Mar 15, 2024
1 parent 4c734bb commit 6af1ec8
Showing 1 changed file with 14 additions and 13 deletions.
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

0 comments on commit 6af1ec8

Please sign in to comment.