Benign go Download

github.com/viventine-space/orbit-sentinel-mcp v0.4.1-0.20260711133326-6cea0c5d4f6e

GitHub Actions workflow definition pathDeclares a command for explicit go generate

Evidence

actions/checkout workflow step reference ci.yml · lines 1–20
1name: ci
2on:
3 push:
4 branches: [main]
⋯7 lines
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v6
15 - uses: actions/setup-go@v6
16 with:
17 go-version: stable
18 - run: go build ./...
19 - run: go vet ./...
20 - run: go test ./...
net/http package import client.go · lines 3–11
⋯4 lines
7 "fmt"
8 "io"
9 "net/http"
10 "net/url"
11 "os"
Creates a new HTTP request client.go · lines 54–57
54func (c *APIClient) doGet(ctx context.Context, path string) (json.RawMessage, error) {
55 req, err := http.NewRequestWithContext(ctx, http.MethodGet, c.BaseURL+path, nil)
56 if err != nil {
57 return nil, fmt.Errorf("build request: %w", err)
Sets HTTP Content-Type header client.go · lines 63–70
63func (c *APIClient) doPost(ctx context.Context, path string, payload []byte) (json.RawMessage, error) {
64 req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.BaseURL+path, bytes.NewReader(payload))
65 if err != nil {
66 return nil, fmt.Errorf("build request: %w", err)
67 }
68 req.Header.Set("Content-Type", "application/json")
69 c.applyHeaders(req, path, ctx)
70 return c.do(req)
Sets HTTP Authorization header client.go · lines 73–77
73func (c *APIClient) applyHeaders(req *http.Request, path string, ctx context.Context) {
74 if c.APIKey != "" && strings.HasPrefix(path, "/api/") {
75 req.Header.Set("Authorization", "Bearer "+c.APIKey)
76 }
77 if tool := mcpToolFromContext(ctx); tool != "" {

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.