Skip to content

Commit 5198a49

Browse files
committed
fix: except license for coverage action
1 parent 2df5acb commit 5198a49

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/dependency-review-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://github.com/cncf/foundation/blob/main/allowed-third-party-license-policy.md
2-
allow_licenses:
2+
allow-licenses:
33
- 'Apache-2.0'
44
- 'BSD-2-Clause'
55
- 'BSD-2-Clause-FreeBSD'
@@ -10,3 +10,8 @@ allow_licenses:
1010
- 'Python-2.0'
1111
- 'X11'
1212
- 'Zlib'
13+
14+
# this action is GPL-3 but it is only used in CI
15+
# https://github.com/actions/dependency-review-action/issues/530#issuecomment-1638291806
16+
allow-dependencies-licenses: >
17+
pkg:githubactions/vladopajic/go-test-coverage@bcd064e5ceef1ccec5441519eb054263b6a44787

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# remove mocks from coverage calculation
2121
grep -v mock_ cover.out.raw > cover.out
2222
- name: Generage coverage badge
23-
uses: vladopajic/go-test-coverage@v2
23+
uses: vladopajic/go-test-coverage@bcd064e5ceef1ccec5441519eb054263b6a44787 # v2.8.2
2424
with:
2525
profile: cover.out
2626
local-prefix: github.com/smlx/go-cli-github

0 commit comments

Comments
 (0)