Skip to content

Commit 242eb01

Browse files
committed
Drop support for Go 1.22 and add support for Go 1.24
Other changes: * Run linting as a separate CI job * Fix golangci-lint config file
1 parent b7f9418 commit 242eb01

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/go.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,34 @@ on:
77
branches: [ master ]
88

99
jobs:
10+
lint:
11+
name: lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-go@v5
16+
with:
17+
go-version: '1.24'
18+
- name: golangci-lint
19+
uses: golangci/golangci-lint-action@v6
20+
with:
21+
version: v1.64.8
22+
1023
build:
1124
runs-on: ubuntu-latest
1225

1326
strategy:
1427
matrix:
15-
go: [ '1.22', '1.23' ]
28+
go: [ '1.23', '1.24' ]
1629

1730
name: Go ${{ matrix.go }}
1831

1932
steps:
2033
- uses: actions/checkout@v4
21-
2234
- name: Set up Go
2335
uses: actions/setup-go@v5
2436
with:
2537
go-version: ${{ matrix.go }}
26-
27-
- name: golangci-lint
28-
uses: golangci/golangci-lint-action@v6
29-
with:
30-
version: v1.62.2
3138

3239
- name: Test
3340
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ linters-settings:
2121
- "**/credential.go"
2222
- "**/audit_logger.go"
2323
issues:
24-
max-same: 0
25-
max-per-linter: 0
24+
max-same-issues: 0
25+
max-issues-per-linter: 0
2626
exclude-use-default: false
2727
exclude:
2828
# gosec: Duplicated errcheck checks

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Passhash ![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/dhui/passhash/go.yml?branch=master) [![Code Coverage](https://img.shields.io/codecov/c/github/dhui/passhash.svg)](https://codecov.io/gh/dhui/passhash) [![GoDoc](https://godoc.org/github.com/dhui/passhash?status.svg)](https://godoc.org/github.com/dhui/passhash) [![Go Report Card](https://goreportcard.com/badge/github.com/dhui/passhash)](https://goreportcard.com/report/github.com/dhui/passhash) [![GitHub Release](https://img.shields.io/github/release/dhui/passhash/all.svg)](https://github.com/dhui/passhash/releases) ![Supported Go versions](https://img.shields.io/badge/Go-1.22%2C%201.23-lightgrey.svg) [![HackerOne](https://img.shields.io/badge/HackerOne-ok-brightgreen.svg)](https://hackerone.com/passhash)
1+
# Passhash ![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/dhui/passhash/go.yml?branch=master) [![Code Coverage](https://img.shields.io/codecov/c/github/dhui/passhash.svg)](https://codecov.io/gh/dhui/passhash) [![GoDoc](https://godoc.org/github.com/dhui/passhash?status.svg)](https://godoc.org/github.com/dhui/passhash) [![Go Report Card](https://goreportcard.com/badge/github.com/dhui/passhash)](https://goreportcard.com/report/github.com/dhui/passhash) [![GitHub Release](https://img.shields.io/github/release/dhui/passhash/all.svg)](https://github.com/dhui/passhash/releases) ![Supported Go versions](https://img.shields.io/badge/Go-1.23%2C%201.24-lightgrey.svg) [![HackerOne](https://img.shields.io/badge/HackerOne-ok-brightgreen.svg)](https://hackerone.com/passhash)
22

33
passhash addresses the dismal state of password management in Go by offering easy-to-use APIs to manage credentials (e.g. password hashes)
44

0 commit comments

Comments
 (0)