Evidence

References Actions-provided GITHUB_TOKEN release.yml · lines 1–29
1# Reference from:
2# https://goreleaser.com/ci/actions/
3name: Release
4on:
5 push:
6 tags:
7 - "v*"
⋯5 lines
13 steps:
14 - name: Checkout
15 uses: actions/checkout@v4
16 with:
17 fetch-depth: 0
18 - name: Set up Go
19 uses: actions/setup-go@v5
20 with:
21 go-version: 1.22
22 - name: Run GoReleaser
23 uses: goreleaser/goreleaser-action@v6
24 with:
25 distribution: goreleaser
26 version: latest
27 args: release --clean
28 env:
29 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Top-level YAML builds section .goreleaser.yml · lines 1–22
1# This is an example .goreleaser.yml file with some sane defaults.
2# Make sure to check the documentation at http://goreleaser.com
3before:
4 hooks:
5 # You may remove this if you don't use go modules.
6 - go mod tidy
7
8# .goreleaser.yml
9builds:
10 - id: "kpm"
11 main: ./kpm.go
⋯11 lines
imports reflect mvs.go · lines 6–22
6:10… tps://research.swtch.com/vgo-mvs.
7package mvs
8
9import (
10 "fmt"
11 "reflect"
12 "sort"
13 "sync"
14
15 "golang.org/x/mod/module"
16 "kcl-lang.io/kpm/pkg/3rdparty/par"
17)
18
19// A Reqs is the requirement graph on which Minimal Version Selection (MVS) operates.
20//
21// The version strings are opaque except for the special version "none"
22// (see the documentation for module.Version). In particular, MVS do …
Asserts an unsigned JWT is rejected mvs.go · lines 114–141
⋯5 lines
119 var required []module.Version
120 var err error
121 if m.Version != "none" {
122 required, err = reqs.Required(m)
123 }
⋯18 lines
Go imports os/exec under exec name git.go · lines 1–25
1package git
2
3import (
4 "encoding/json"
5 "errors"
6 "fmt"
7 "io"
8 "net/http"
9 "os/exec"
10 "regexp"
11 "time"
12
13 "github.com/go-git/go-git/v5"
14 "github.com/go-git/go-git/v5/plumbing"
15 "github.com/hashicorp/go-getter"
16 giturl "github.com/kubescape/go-git-url"
17)
18
19// CloneOptions is a struct for specifying options for cloning a git repository
20type CloneOptions struct {
21 RepoURL string
⋯4 lines

Showing the top 5 files — 4 more files (274 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.