Skip to content

Commit

Permalink
Fix intermittent failures in CI-Tests (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: Azeem Shaikh <azeems@google.com>
  • Loading branch information
azeemshaikh38 and azeemsgoogle committed Jul 27, 2022
1 parent fcdfbf8 commit 6f95f11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Expand Up @@ -39,7 +39,7 @@ jobs:
go-version: '1.18'
- name: Run Go tests
# cannot run tests with race because we are mutating state (setting ENV variables)
run: go test -covermode=atomic -coverprofile=unit-coverage.out ./...
run: GITHUB_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} go test -covermode=atomic -coverprofile=unit-coverage.out ./...
- name: Upload codecoverage
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 2.1.0
with:
Expand Down
2 changes: 1 addition & 1 deletion signing/signing_test.go
Expand Up @@ -79,7 +79,7 @@ func Test_ProcessSignature(t *testing.T) {
jsonPayload, err := os.ReadFile("testdata/results.json")
repoName := "ossf-tests/scorecard-action"
repoRef := "refs/heads/main"
accessToken := ""
accessToken := os.Getenv("GITHUB_AUTH_TOKEN")

if err != nil {
t.Errorf("Error reading testdata:, %v", err)
Expand Down

0 comments on commit 6f95f11

Please sign in to comment.