File tree Expand file tree Collapse file tree 3 files changed +60
-4
lines changed
Expand file tree Collapse file tree 3 files changed +60
-4
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2021 Security Scorecard Authors
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ name : publishimage
16+
17+ permissions :
18+ contents : read
19+ id-token : write
20+ packages : write
21+
22+ on :
23+ push :
24+ branches :
25+ - main
26+ env :
27+ GO_VERSION : 1.17.7
28+
29+ jobs :
30+ unit-test :
31+ name : publishimage
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : Harden Runner
35+ uses : step-security/harden-runner@bdb12b622a910dfdc99a31fdfe6f45a16bc287a4 # v1
36+ with :
37+ egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
38+
39+ - name : Clone the code
40+ uses : actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 # v2.3.4
41+ with :
42+ fetch-depth : 0
43+ - name : Setup Go
44+ uses : actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2.2.0
45+ with :
46+ go-version : ${{ env.GO_VERSION }}
47+ - name : install ko
48+ uses : imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675 # v0.4
49+ - name : publishimage
50+ uses : nick-invision/retry@7f8f3d9f0f62fe5925341be21c2e8314fd4f7c7c
51+ with :
52+ max_attempts : 3
53+ retry_on : error
54+ timeout_minutes : 30
55+ command : |
56+ go env -w GOFLAGS=-mod=mod
57+ make install
58+ make scorecard-ko
Original file line number Diff line number Diff line change @@ -200,9 +200,8 @@ ko-build-everything: $(ko-targets)
200200
201201scorecard-ko :
202202 $(call create_kocache_path)
203- KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH ) KO_DOCKER_REPO= ${KO_PREFIX} /scorecard LDFLAGS=" $( LDFLAGS) " \
203+ KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH ) LDFLAGS=" $( LDFLAGS) " \
204204 KO_CACHE=$(KOCACHE_PATH ) ko build -B \
205- --push=false \
206205 --sbom=none \
207206 --platform=$(PLATFORM ) \
208207 --tags latest,$(GIT_VERSION ) ,$(GIT_HASH ) github.com/ossf/scorecard/v4
Original file line number Diff line number Diff line change @@ -1087,8 +1087,7 @@ github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpe
10871087github.1485827954.workers.dev/matttproud/golang_protobuf_extensions v1.0.1 /go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0 =
10881088github.1485827954.workers.dev/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 /go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4 =
10891089github.1485827954.workers.dev/maxbrunsfeld/counterfeiter/v6 v6.2.2 /go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY =
1090- github.com/maxbrunsfeld/counterfeiter/v6 v6.4.1 h1:hZD/8vBuw7x1WqRXD/WGjVjipbbo/HcDBgySYYbrUSk =
1091- github.com/maxbrunsfeld/counterfeiter/v6 v6.4.1 /go.mod h1:DK1Cjkc0E49ShgRVs5jy5ASrM15svSnem3K/hiSGD8o =
1090+ github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0 /go.mod h1:fJ0UAZc1fx3xZhU4eSHQDJ1ApFmTVhp5VTpV9tm2ogg =
10921091github.1485827954.workers.dev/mcuadros/go-jsonschema-generator v0.0.0-20200330054847-ba7a369d4303 h1:mc6Th1b2xkPDUHTIUynE0LMJUgPEJdIDUjBLvj8yprs =
10931092github.1485827954.workers.dev/mcuadros/go-jsonschema-generator v0.0.0-20200330054847-ba7a369d4303 /go.mod h1:O6IeMrJ2EU+kDaxu7Dchbd0fbmrsTcjg8SGYFVJCr5A =
10941093github.1485827954.workers.dev/mgutz/ansi v0.0.0-20170206155736-9520e82c474b /go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE =
You can’t perform that action at this time.
0 commit comments