Skip to content

Commit 680642c

Browse files
committed
Merge branch 'main' of github.com:kosli-dev/cli into 4986-google-cloud-run-1
2 parents 64781a6 + 224fe08 commit 680642c

27 files changed

Lines changed: 553 additions & 211 deletions

File tree

.github/workflows/binary_provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
path: ${{ github.workspace }}/${{inputs.dir}}
4848

4949
- name: setup-kosli-cli
50-
uses: kosli-dev/setup-cli-action@v4
50+
uses: kosli-dev/setup-cli-action@v5
5151
with:
5252
version:
5353
${{ vars.KOSLI_CLI_VERSION }}

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
password: ${{ secrets.GITHUB_TOKEN }}
220220

221221
- name: setup-kosli-cli
222-
uses: kosli-dev/setup-cli-action@v4
222+
uses: kosli-dev/setup-cli-action@v5
223223
with:
224224
version: ${{ vars.KOSLI_CLI_VERSION }}
225225

.github/workflows/init_kosli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
ref: ${{ inputs.checkout_ref || github.sha }}
5151

5252
- name: setup-kosli-cli
53-
uses: kosli-dev/setup-cli-action@v4
53+
uses: kosli-dev/setup-cli-action@v5
5454
with:
5555
version:
5656
${{ vars.KOSLI_CLI_VERSION }}

.github/workflows/never_alone_trail.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
fetch-depth: 0
5151

5252
- name: setup-kosli-cli
53-
uses: kosli-dev/setup-cli-action@v4
53+
uses: kosli-dev/setup-cli-action@v5
5454
with:
5555
version: ${{ vars.KOSLI_CLI_VERSION }}
5656

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ jobs:
144144
go-version-file: '.go-version'
145145
check-latest: true
146146

147+
- name: Set up Node.js
148+
uses: actions/setup-node@v6
149+
with:
150+
node-version: '24'
151+
registry-url: 'https://registry.npmjs.org'
152+
147153
# Use release notes from the tag body when present (set by interactive `make release` or `make release tag=vX.Y.Z` with dist/release_notes.md). Otherwise GoReleaser uses its default changelog.
148154
# Write to repo root so GoReleaser's --clean (which removes dist/) does not delete the file before it is read.
149155
- name: Get release notes from tag
@@ -165,7 +171,6 @@ jobs:
165171
env:
166172
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167173
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
168-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
169174
GORELEASER_KEY: ${{ secrets.KOSLI_GORELEASERPRO }}
170175

171176
- name: Copy npm packages into dist for provenance

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
check-latest: true
8989

9090
- name: setup-kosli-cli
91-
uses: kosli-dev/setup-cli-action@v4
91+
uses: kosli-dev/setup-cli-action@v5
9292
with:
9393
version:
9494
${{ vars.KOSLI_CLI_VERSION }}
@@ -135,7 +135,7 @@ jobs:
135135
check-latest: true
136136

137137
- name: setup-kosli-cli
138-
uses: kosli-dev/setup-cli-action@v4
138+
uses: kosli-dev/setup-cli-action@v5
139139
with:
140140
version:
141141
${{ vars.KOSLI_CLI_VERSION }}
@@ -208,7 +208,7 @@ jobs:
208208
uses: snyk/actions/setup@master
209209

210210
- name: setup-kosli-cli
211-
uses: kosli-dev/setup-cli-action@v4
211+
uses: kosli-dev/setup-cli-action@v5
212212
with:
213213
version:
214214
${{ vars.KOSLI_CLI_VERSION }}
@@ -252,7 +252,7 @@ jobs:
252252
uses: snyk/actions/setup@master
253253

254254
- name: setup-kosli-cli
255-
uses: kosli-dev/setup-cli-action@v4
255+
uses: kosli-dev/setup-cli-action@v5
256256
with:
257257
version:
258258
${{ vars.KOSLI_CLI_VERSION }}

cmd/kosli/assertPRGithub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func newAssertPullRequestGithubCmd(out io.Writer) *cobra.Command {
4040
Args: cobra.NoArgs,
4141
RunE: func(cmd *cobra.Command, args []string) error {
4242
o.retriever = ghUtils.NewGithubRetrieverFunc(githubFlagsValues.Token, githubFlagsValues.BaseURL,
43-
githubFlagsValues.Org, githubFlagsValues.Repository)
43+
githubFlagsValues.Org, githubFlagsValues.Repository, global.Debug)
4444
return o.run(args)
4545
},
4646
}

cmd/kosli/assertPRGithub_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (suite *AssertPRGithubCommandTestSuite) SetupTest() {
2020
suite.commitWithPR = "480e5a00379a52b8e184d6815080242a878ca295"
2121
suite.commitWithNoPR = "7d1db1c8b7e71ee0ce369f1b722cc8844d3a7af6"
2222

23-
ghUtils.NewGithubRetrieverFunc = func(token, baseURL, org, repository string) types.PRRetriever {
23+
ghUtils.NewGithubRetrieverFunc = func(token, baseURL, org, repository string, debug bool) types.PRRetriever {
2424
return &ghUtils.FakeGitHubClient{
2525
PRsByCommit: map[string][]*types.PREvidence{
2626
suite.commitWithPR: {{URL: "https://github.com/kosli-dev/cli/pull/1", State: "MERGED"}},

cmd/kosli/attestPRGithub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func newAttestGithubPRCmd(out io.Writer) *cobra.Command {
143143
RunE: func(cmd *cobra.Command, args []string) error {
144144
o.repoURLExplicit = cmd.Flags().Changed("repo-url")
145145
o.retriever = ghUtils.NewGithubRetrieverFunc(githubFlagsValues.Token, githubFlagsValues.BaseURL,
146-
githubFlagsValues.Org, o.repoName)
146+
githubFlagsValues.Org, o.repoName, global.Debug)
147147
return o.run(args)
148148
},
149149
}

cmd/kosli/attestPRGithub_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (suite *AttestGithubPRCommandTestSuite) SetupTest() {
3333
suite.commitWithNoPR, err = gv.ResolveRevision("HEAD~1")
3434
require.NoError(suite.T(), err)
3535

36-
ghUtils.NewGithubRetrieverFunc = func(token, baseURL, org, repository string) types.PRRetriever {
36+
ghUtils.NewGithubRetrieverFunc = func(token, baseURL, org, repository string, debug bool) types.PRRetriever {
3737
return &ghUtils.FakeGitHubClient{
3838
PRsByCommit: map[string][]*types.PREvidence{
3939
suite.commitWithPR: {{URL: "https://github.com/kosli-dev/cli/pull/1", State: "MERGED"}},

0 commit comments

Comments
 (0)