Skip to content

Commit

Permalink
Fix GitHub workflows failing
Browse files Browse the repository at this point in the history
  • Loading branch information
azeemsgoogle committed Oct 27, 2021
1 parent 0ba864e commit a4179b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
uses: actions/setup-go@331ce1d993939866bb63c32c6cbbfd48fa76fc57 # v2.1.3
with:
go-version: '^1.17'
- name: Install tools
run: make install
- name: Run presubmit tests
run: |
go env -w GOFLAGS=-mod=mod
Expand Down
1 change: 1 addition & 0 deletions checks/pinned_dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ func getOSesForJob(job *gitHubActionWorkflowJob) ([]string, error) {
return job.RunsOn, nil
}
jobOSes := make([]string, 0)
// nolint: nestif
if m, ok := job.Strategy.Matrix.(map[string]interface{}); ok {
if osVal, ok := m["os"]; ok {
if oses, ok := osVal.([]interface{}); ok {
Expand Down
1 change: 0 additions & 1 deletion pkg/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func getRepoCommitHash(r clients.RepoClient, uri *repos.RepoURI) (string, error)
switch uri.RepoType() {
// URL.
case repos.RepoTypeURL:
//nolint:unwrapped
commits, err := r.ListCommits()
if err != nil {
// nolint:wrapcheck
Expand Down

0 comments on commit a4179b2

Please sign in to comment.