mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 17:07:53 +03:00
🌱 Implemented ignore for license check
The license check was updated with the ignore files. Fixed the issue https://github.com/ossf/scorecard/issues/767
This commit is contained in:
parent
0c55af5ef8
commit
ef9880c7b3
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -63,13 +63,10 @@ jobs:
|
||||
with:
|
||||
go-version: '1.16'
|
||||
- name: Check license headers
|
||||
# We need either https://github.com/google/addlicense/pull/70#issuecomment-888099920 or
|
||||
# https://github.com/google/addlicense/pull/84 landed
|
||||
# to exclude testdata folders in the repo.
|
||||
run: |
|
||||
echo "license check disabled. Will be reenabled soon."
|
||||
# go env -w GOFLAGS=-mod=mod
|
||||
# make all
|
||||
# set -e
|
||||
# addlicense -l apache -c 'Security Scorecard Authors' -v *
|
||||
# git diff --exit-code
|
||||
go env -w GOFLAGS=-mod=mod
|
||||
make all
|
||||
set -e
|
||||
addlicense -ignore "**/script-empty.sh" -l apache -c 'Security Scorecard Authors' -v *
|
||||
git diff --exit-code
|
||||
|
2
go.mod
2
go.mod
@ -9,7 +9,7 @@ require (
|
||||
github.com/bradleyfalzon/ghinstallation v1.1.1
|
||||
github.com/go-git/go-git/v5 v5.4.2
|
||||
github.com/golangci/golangci-lint v1.41.1
|
||||
github.com/google/addlicense v0.0.0-20210428195630-6d92264d7170
|
||||
github.com/google/addlicense v0.0.0-20210809195240-d43bb61fdfda
|
||||
github.com/google/go-cmp v0.5.6
|
||||
github.com/google/go-github/v32 v32.1.0
|
||||
github.com/google/go-github/v33 v33.0.0
|
||||
|
6
go.sum
6
go.sum
@ -256,6 +256,8 @@ github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbz
|
||||
github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb/go.mod h1:PkYb9DJNAwrSvRx5DYA+gUcOIgTGVMNkfSCbZM8cWpI=
|
||||
github.com/blang/semver v3.1.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
|
||||
github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
|
||||
github.com/bmatcuk/doublestar/v4 v4.0.2 h1:X0krlUVAVmtr2cRoTqR8aDMrDqnB36ht8wpWTiQ3jsA=
|
||||
github.com/bmatcuk/doublestar/v4 v4.0.2/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
|
||||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
|
||||
github.com/bombsimon/wsl/v2 v2.0.0/go.mod h1:mf25kr/SqFEPhhcxW1+7pxzGlW+hIl/hYTKY95VwV8U=
|
||||
github.com/bombsimon/wsl/v2 v2.2.0/go.mod h1:Azh8c3XGEJl9LyX0/sFC+CKMc7Ssgua0g+6abzXN4Pg=
|
||||
@ -611,8 +613,8 @@ github.com/golangci/revgrep v0.0.0-20210208091834-cd28932614b5/go.mod h1:LK+zW4M
|
||||
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys=
|
||||
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ=
|
||||
github.com/gomodule/redigo v1.8.4/go.mod h1:P9dn9mFrCBvWhGE1wpxx6fgq7BAeLBk+UUUzlpkBYO0=
|
||||
github.com/google/addlicense v0.0.0-20210428195630-6d92264d7170 h1:jLUa4MO3autxlRJmC4KubeE5QGIb5JqW9oEaqYTb/fA=
|
||||
github.com/google/addlicense v0.0.0-20210428195630-6d92264d7170/go.mod h1:EMjYTRimagHs1FwlIqKyX3wAM0u3rA+McvlIIWmSamA=
|
||||
github.com/google/addlicense v0.0.0-20210809195240-d43bb61fdfda h1:tyzGZYxUAj2Ue7lswp0ab21jxwHT2SaC2J5k5w6B6OY=
|
||||
github.com/google/addlicense v0.0.0-20210809195240-d43bb61fdfda/go.mod h1:Sm/DHu7Jk+T5miFHHehdIjbi4M5+dJDRS3Cq0rncIxA=
|
||||
github.com/google/btree v0.0.0-20180124185431-e89373fe6b4a/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
|
Loading…
Reference in New Issue
Block a user