Skip to content

Commit

Permalink
SEC-090: Automated trusted workflow pinning (2024-08-19) (#367)
Browse files Browse the repository at this point in the history
* Result of tsccr-helper -log-level=info gha update -latest .

* Resolve linter errors and warnings

---------

Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
Co-authored-by: Selena Goods <[email protected]>
  • Loading branch information
3 people authored Aug 20, 2024
1 parent f52f738 commit 958f88f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
wildcard=".*"
echo "version=${orginal_version%"$wildcard"}" >> "$GITHUB_OUTPUT"
- run: go tool cover -html=coverage.out -o coverage.html
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: go-${{ matrix.go-version }}-terraform-${{ steps.tf_version.outputs.version }}-coverage
path: coverage.html
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ linters:
- unconvert
- unparam
- unused
- vet
- govet

run:
# Prevent false positive timeouts in CI
Expand Down
6 changes: 3 additions & 3 deletions helper/acctest/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func RandomWithPrefix(name string) string {
return fmt.Sprintf("%s-%d", name, RandInt())
}

// RandIntRange returns a random integer between min (inclusive) and max (exclusive)
func RandIntRange(min int, max int) int {
return rand.Intn(max-min) + min
// RandIntRange returns a random integer between minInt (inclusive) and maxInt (exclusive)
func RandIntRange(minInt int, maxInt int) int {
return rand.Intn(maxInt-minInt) + minInt
}

// RandString generates a random alphanumeric string of the length specified
Expand Down

0 comments on commit 958f88f

Please sign in to comment.