Skip to content

Commit 6bf9431

Browse files
committed
ci: use bake to check licenses
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 38a7b8a commit 6bf9431

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,14 @@ jobs:
5757
- name: Checkout
5858
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
5959

60-
- name: Set up Go
61-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
62-
with:
63-
go-version: "1.25.0"
64-
cache: true
65-
66-
- name: Install go-licences
67-
run: go install github.com/google/go-licenses@latest
60+
- name: Set up Docker Buildx
61+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
6862

6963
- name: Check licenses
70-
run: go-licenses check . --allowed_licenses=Apache-2.0,MIT,BSD-3-Clause,BSD-2-Clause --ignore modernc.org/mathutil
64+
uses: docker/bake-action@3acf805d94d93a86cce4ca44798a76464a75b88c # v6.9.0
65+
with:
66+
source: .
67+
targets: licenses
7168

7269
build:
7370
needs: [lint, test, license-check]

0 commit comments

Comments
 (0)