Skip to content

Commit 600f87d

Browse files
hashicorp-tsccr[bot]SBGoods
authored andcommitted
SEC-090: Automated trusted workflow pinning (2024-08-19) (#1028)
* 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]>
1 parent c5fd69d commit 600f87d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci-go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- run: go mod download
8989
- run: go test -coverprofile=coverage.out ./...
9090
- run: go tool cover -html=coverage.out -o coverage.html
91-
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
91+
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
9292
with:
9393
name: go-${{ matrix.go-version }}-coverage
9494
path: coverage.html

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ linters:
1111
- forcetypeassert
1212
- gofmt
1313
- gosimple
14-
- govet
1514
- ineffassign
1615
- makezero
1716
- misspell
@@ -23,6 +22,7 @@ linters:
2322
- unconvert
2423
- unparam
2524
- unused
25+
- govet
2626

2727
run:
2828
# Prevent false positive timeouts in CI

internal/privatestate/data.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ func (d *Data) Bytes(ctx context.Context) ([]byte, diag.Diagnostics) {
7272
if !json.Valid(v) {
7373
diags.AddError(
7474
"Error Encoding Private State",
75-
fmt.Sprintf("An error was encountered when validating private state value."+
76-
"The value associated with key %q is is not valid JSON.\n\n"+
77-
"This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer.", k),
75+
"An error was encountered when validating private state value."+
76+
fmt.Sprintf("The value associated with key %q is is not valid JSON.\n\n", k)+
77+
"This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer.",
7878
)
7979

8080
tflog.Error(ctx, "error encoding private state: invalid JSON value", map[string]interface{}{"key": k, "value": v})

0 commit comments

Comments
 (0)