ci: update lint with integration build tag (#177)

Update golangcilint to run the `integration` build tag as well.
This commit is contained in:
Yuan
2024-12-30 14:42:28 -08:00
committed by GitHub
parent 8f2ad44fb4
commit 655afa51f5
2 changed files with 6 additions and 0 deletions

View File

@@ -30,3 +30,6 @@ linters-settings:
replacement: 'a[b:]'
issues:
fix: true
run:
build-tags:
- integration

View File

@@ -49,6 +49,9 @@ func getGoogleIdToken(audience string) (string, error) {
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
return "", err
}
return string(body), nil
}
}