diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80927225..66ed5ca7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,11 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: read + packages: write + attestations: write + id-token: write steps: - name: Checkout uses: actions/checkout@v4 @@ -28,7 +33,7 @@ jobs: with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.GORELEASER_GITHUB_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Release uses: goreleaser/goreleaser-action@v6.1.0 with: diff --git a/.github/workflows/repo-validate.yml b/.github/workflows/repo-validate.yml deleted file mode 100644 index 5f02cc5e..00000000 --- a/.github/workflows/repo-validate.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Repo - Validate - -on: - workflow_dispatch: - push: - -jobs: - validate: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: License Exists - run: test -f LICENSE - - name: Gitignore Exists - run: test -f .gitignore - - name: Readme Exists - run: test -f README.md - - name: Readme Lint - uses: avto-dev/markdown-lint@v1.5.0 - with: - args: ./README.md - config: ./.markdownlint.json diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 46c5c3b4..b53d7b96 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -13,7 +13,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: stable # https://golang.org/dl/ + go-version: stable - name: Docs Check run: | before=$(cat docs/cli/*.md | md5sum) @@ -29,7 +29,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: stable # https://golang.org/dl/ + go-version: stable - name: Lint uses: golangci/golangci-lint-action@v6 with: @@ -42,7 +42,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: stable # https://golang.org/dl/ + go-version: stable - name: Go Mod Tidy run: test -z $(go mod tidy) govulncheck: @@ -53,7 +53,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: stable # https://golang.org/dl/ + go-version: stable - name: Install govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@latest - name: Run govulncheck @@ -66,7 +66,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: stable # https://golang.org/dl/ + go-version: stable - name: Goreleaser Check uses: goreleaser/goreleaser-action@v6.1.0 with: @@ -79,7 +79,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: stable # https://golang.org/dl/ + go-version: stable - name: Cache Modules uses: actions/cache@v4 with: diff --git a/.golangci.yml b/.golangci.yml index 119e4ef8..044b8371 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,6 @@ +run: + timeout: 5m + linters: enable: - bodyclose diff --git a/.goreleaser.yml b/.goreleaser.yml index d5afca12..91ca88ee 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -43,14 +43,14 @@ brews: directory: Formula commit_author: name: Sean Lingren - email: sean@lingrino.com + email: sean@lingren.com test: | system "#{bin}/vaku version" nfpms: - id: vaku description: CLI that extends the official Vault client. homepage: https://vaku.dev/ - maintainer: "Sean Lingren " + maintainer: "Sean Lingren " license: MIT formats: - deb @@ -65,4 +65,6 @@ dockers: build_flag_templates: - --label=org.opencontainers.image.created={{.Date}} - --label=org.opencontainers.image.revision={{.FullCommit}} + - --label=org.opencontainers.image.source={{.GitURL}} + - --label=org.opencontainers.image.title={{.ProjectName}} - --label=org.opencontainers.image.version={{.Version}} diff --git a/.markdownlint.json b/.markdownlint.json deleted file mode 100644 index feec3552..00000000 --- a/.markdownlint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "line-length": false -} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b158bbf..72fd626a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. 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). +## 2.8.1 - 2024-11-23 + +### Changed + +- GEN: Update dependencies +- GEN: Update release action + ## 2.8.0 - 2024-10-27 ### Added diff --git a/api/version.go b/api/version.go index b7f1a0ae..efc508c2 100644 --- a/api/version.go +++ b/api/version.go @@ -2,5 +2,5 @@ package vaku // Version gives the current Vaku API version. func Version() string { - return "2.8.0" + return "2.8.1" } diff --git a/api/version_test.go b/api/version_test.go index 5af81d74..9dc9fa72 100644 --- a/api/version_test.go +++ b/api/version_test.go @@ -8,5 +8,5 @@ import ( func TestVersion(t *testing.T) { t.Parallel() - assert.Equal(t, "2.8.0", Version()) + assert.Equal(t, "2.8.1", Version()) } diff --git a/cmd/version_test.go b/cmd/version_test.go index 5bca77ed..b38fdfbc 100644 --- a/cmd/version_test.go +++ b/cmd/version_test.go @@ -19,12 +19,12 @@ func TestVersion(t *testing.T) { { name: "version test", giveVersion: "test", - wantOut: "API: 2.8.0\nCLI: test\n", + wantOut: "API: 2.8.1\nCLI: test\n", }, { name: "version version", giveVersion: "version", - wantOut: "API: 2.8.0\nCLI: version\n", + wantOut: "API: 2.8.1\nCLI: version\n", }, { name: "args",