Evidence

actions/checkout workflow step reference lint-go.yml · lines 1–48
1name: golangci-lint
2
3# Long living branches and all PRs
4on:
5 push:
6 branches:
7 - main
8 pull_request:
9
10permissions:
11 contents: read
12 # Optional: allow read access to pull request. Use with `only-new-issues` option.
13 # pull-requests: read
⋯4 lines
18 runs-on: ubuntu-latest
19 steps:
20 - uses: actions/checkout@v6
21 - uses: actions/setup-go@v6
22 with:
⋯5 lines
28 # Require: The version of golangci-lint to use.
29 # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
30 # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
31 version: v2.1
32
33 # Optional: working directory, useful for monorepos
34 # working-directory: somedir
35
36 # Optional: golangci-lint command line arguments.
37 #
38 # Note: By default, the `.golangci.yml` file should be at the root of the repository.
39 # The location of the configuration file can be changed by using `--config=`
40 # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
⋯8 lines
GitHub service URL reference SECURITY.md · lines 1–6
1# Security Policy
2
3This repository is part of the **CosmWasm** stack.
4Please see the [Advisories] for its security policy.
5
6[Advisories]: https://github.com/CosmWasm/advisories/blob/main/SECURITY.md
imports encoding/json callbacks.go · lines 30–48
30:97… equest, UnmanagedVector *result, UnmanagedVector *errOut);
31
32
33*/
34import "C"
35
36import (
37 "encoding/json"
38 "fmt"
39 "log"
40 "reflect"
41 "runtime/debug"
42 "unsafe"
43
44 "github.com/CosmWasm/wasmvm/v3/types"
45)
46
47// Note: we have to include all exports in the same file (at least since they both import bindings.h),
48// or get …
Go unsafe.Pointer type conversion expression callbacks.go · lines 120–129
120:37… es.GasMeter) C.Db {
121 return C.Db{
122 gas_meter: (*C.gas_meter_t)(unsafe.Pointer(gm)),
123 state: (*C.db_t)(unsafe.Pointer(state)),
124 vtable: db_vtable,
⋯5 lines
Go JSON marshal call callbacks.go · lines 493–501
493:18… )(gasAfter - gasBefore)
494
495 // serialize the response
496 bz, err := json.Marshal(res)
497 if err != nil {
498 *errOut = newUnmanagedVector([]byte(err.Error()))
499 return C.GoError_CannotSerialize
500 }
501 *result = newU …

Showing the top 5 files — 3 more files (20 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.