Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Setup Go
uses: actions/setup-go@v5
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417
with:
go-version-file: go.mod

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
valid_tag: ${{ steps.set_standard_vars.outputs.valid_tag }}
rc: ${{ steps.set_standard_vars.outputs.rc }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: set outputs with default values
id: set_standard_vars
run: |
Expand Down
1 change: 1 addition & 0 deletions pkg/def/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func validate[T any](definition T, schemaName string) error {
return fmt.Errorf("failed to marshal definition: %w", err)
}

// nosemgrep: go-unsafe-deserialization-interface
var v interface{}
if unmarshalErr := json.Unmarshal(data, &v); unmarshalErr != nil {
return fmt.Errorf("failed to unmarshal definition: %w", err)
Expand Down