github.com/snapcore/snapd v0.0.0-20261119165340-dd0f06165e46
legitimate snapd test suite
SSH rc path near a file command.text section exceeds 75% of binary size
SHA-2564f22b66a97e15e994b5cb834f876c919dbfcb2155bc6f2f27333299d15b59a44
Evidence
⋯7 lines
8 steps:
9 - name: Checkout
10 uses: actions/checkout@v6
11 with:
12 fetch-depth: 0
⋯6 lines
19 uses: get-woke/woke-action-reviewdog@d71fd0115146a01c3181439ce714e21a69d75e31 # v0
20 with:
21 github-token: ${{ secrets.GITHUB_TOKEN }}
22 reporter: github-pr-check
23 fail-on-error: true
24 woke-args: ${{ steps.changed-files.outputs.all_changed_files }}
3:3…
4 * Copyright (C) 2015-2024 Canonical Ltd
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 3 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 */
19
20package client
21
22import (
23 "bytes"
24 "context"
25 "encoding/json"
26 "errors"
27 "fmt"
28 "io"
29 "net"
30 "net/http"
31 "net/url"
32 "os"
33 "path"
34 "strconv"
35 "time"
36
37 "github.com/snapcore/snapd/dirs"
38 "github.com/snapcore/snapd/features"
39 "github.com/snapcore/snapd/httputil"
40 "github.com/snapcore/snapd/jsonutil"
41)
42
43func unixDialer(socketPath string) func(string, string) (net.Conn, error) {
44 if socketPath …
45:27… ocket
46 }
47 return func(_, _ string) (net.Conn, error) {
48 return net.Dial("unix", socketPath)
49 }
50}
⋯6 lines
⋯4 lines
118 } else {
119 var err error
120 baseURL, err = url.Parse(config.BaseURL)
121 if err != nil {
122 panic(fmt.Sprintf("cannot parse server base URL: %q (%v)", config.BaseURL, err))
⋯4 lines
132:17… ue,
133 }
134 return &Client{
135 baseURL: *baseURL,
136 doer: &http.Client{Transport: transport},
137 disableAuth: config.DisableAuth,
138 interactive: config.Interactive,
139 userAgent: config.UserAgent,
140 …
No evidence locations were recorded for this file. Raw result