Skip to content

Commit cb17e01

Browse files
authored
release updates (#1589)
* release updates * token permissions
1 parent 1d09ac0 commit cb17e01

10 files changed

+30
-39
lines changed

.github/workflows/release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
attestations: write
15+
id-token: write
1116
steps:
1217
- name: Checkout
1318
uses: actions/checkout@v4
@@ -28,7 +33,7 @@ jobs:
2833
with:
2934
registry: ghcr.io
3035
username: ${{ github.repository_owner }}
31-
password: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
3237
- name: Release
3338
uses: goreleaser/goreleaser-action@v6.1.0
3439
with:

.github/workflows/repo-validate.yml

-23
This file was deleted.

.github/workflows/validate.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Install Go
1414
uses: actions/setup-go@v5
1515
with:
16-
go-version: stable # https://golang.org/dl/
16+
go-version: stable
1717
- name: Docs Check
1818
run: |
1919
before=$(cat docs/cli/*.md | md5sum)
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install Go
3030
uses: actions/setup-go@v5
3131
with:
32-
go-version: stable # https://golang.org/dl/
32+
go-version: stable
3333
- name: Lint
3434
uses: golangci/golangci-lint-action@v6
3535
with:
@@ -42,7 +42,7 @@ jobs:
4242
- name: Install Go
4343
uses: actions/setup-go@v5
4444
with:
45-
go-version: stable # https://golang.org/dl/
45+
go-version: stable
4646
- name: Go Mod Tidy
4747
run: test -z $(go mod tidy)
4848
govulncheck:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install Go
5454
uses: actions/setup-go@v5
5555
with:
56-
go-version: stable # https://golang.org/dl/
56+
go-version: stable
5757
- name: Install govulncheck
5858
run: go install golang.org/x/vuln/cmd/govulncheck@latest
5959
- name: Run govulncheck
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install Go
6767
uses: actions/setup-go@v5
6868
with:
69-
go-version: stable # https://golang.org/dl/
69+
go-version: stable
7070
- name: Goreleaser Check
7171
uses: goreleaser/goreleaser-action@v6.1.0
7272
with:
@@ -79,7 +79,7 @@ jobs:
7979
- name: Install Go
8080
uses: actions/setup-go@v5
8181
with:
82-
go-version: stable # https://golang.org/dl/
82+
go-version: stable
8383
- name: Cache Modules
8484
uses: actions/cache@v4
8585
with:

.golangci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
run:
2+
timeout: 5m
3+
14
linters:
25
enable:
36
- bodyclose

.goreleaser.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ brews:
4343
directory: Formula
4444
commit_author:
4545
name: Sean Lingren
46-
email: sean@lingrino.com
46+
email: sean@lingren.com
4747
test: |
4848
system "#{bin}/vaku version"
4949
nfpms:
5050
- id: vaku
5151
description: CLI that extends the official Vault client.
5252
homepage: https://vaku.dev/
53-
maintainer: "Sean Lingren <sean@lingrino.com>"
53+
maintainer: "Sean Lingren <sean@lingren.com>"
5454
license: MIT
5555
formats:
5656
- deb
@@ -65,4 +65,6 @@ dockers:
6565
build_flag_templates:
6666
- --label=org.opencontainers.image.created={{.Date}}
6767
- --label=org.opencontainers.image.revision={{.FullCommit}}
68+
- --label=org.opencontainers.image.source={{.GitURL}}
69+
- --label=org.opencontainers.image.title={{.ProjectName}}
6870
- --label=org.opencontainers.image.version={{.Version}}

.markdownlint.json

-3
This file was deleted.

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 2.8.1 - 2024-11-23
8+
9+
### Changed
10+
11+
- GEN: Update dependencies
12+
- GEN: Update release action
13+
714
## 2.8.0 - 2024-10-27
815

916
### Added

api/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package vaku
22

33
// Version gives the current Vaku API version.
44
func Version() string {
5-
return "2.8.0"
5+
return "2.8.1"
66
}

api/version_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88

99
func TestVersion(t *testing.T) {
1010
t.Parallel()
11-
assert.Equal(t, "2.8.0", Version())
11+
assert.Equal(t, "2.8.1", Version())
1212
}

cmd/version_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ func TestVersion(t *testing.T) {
1919
{
2020
name: "version test",
2121
giveVersion: "test",
22-
wantOut: "API: 2.8.0\nCLI: test\n",
22+
wantOut: "API: 2.8.1\nCLI: test\n",
2323
},
2424
{
2525
name: "version version",
2626
giveVersion: "version",
27-
wantOut: "API: 2.8.0\nCLI: version\n",
27+
wantOut: "API: 2.8.1\nCLI: version\n",
2828
},
2929
{
3030
name: "args",

0 commit comments

Comments
 (0)