Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
33e24cf
chore: update GitHub Actions versions in workflow files
appleboy Oct 9, 2023
e8253f1
docs: Update syntax highlight in Readme (#234)
ddaza Oct 9, 2023
2d48feb
fix: update workflows and dependencies
appleboy Oct 9, 2023
8fca474
chore: update dependencies to latest versions
appleboy Oct 9, 2023
f378232
refactor: refactor MongoDB client connection
appleboy Oct 9, 2023
03d5b2c
docs: update changelog section titles and regex patterns
appleboy Oct 9, 2023
4858a5a
build: remove unused variables and add build constraints for go1.10 a…
appleboy Oct 10, 2023
8eaa3bf
chore: remove support for older Go versions in lint workflow
appleboy Oct 10, 2023
3a8bd8f
chore: update GitHub Actions workflow for multiple OS and Go versions
appleboy Oct 10, 2023
8ac3630
chore: update badges and remove embedded code snippet
appleboy Oct 10, 2023
8f480c3
chore: update version of `actions/setup-go` in GitHub actions workflows
appleboy Dec 11, 2023
54bf75a
ci: update GitHub Actions to Version 3
appleboy Dec 30, 2023
98372e3
chore: update golang.org/x packages to latest versions
appleboy Dec 30, 2023
5c9a349
chore: update third-party dependencies to latest versions (#262)
appleboy Mar 24, 2024
076c06f
ci: update GitHub Actions configurations for Go projects
appleboy Mar 24, 2024
113f163
docs: Update README.md (#260)
FarmerChillax Mar 24, 2024
a580e5b
ci: refine build and release processes
appleboy May 5, 2024
7ac2f0c
build: update Go version to 1.19 in project dependencies
appleboy May 5, 2024
4814ef5
chore: update core golang.org/x dependencies
appleboy May 5, 2024
d5f4b3b
ci: update CI/CD pipeline and testing configurations
appleboy Jun 18, 2024
a4432eb
ci: update CI workflows for Go 1.23 and latest action versions
appleboy Dec 26, 2024
8e4ea71
chore: update golang.org/x dependencies to latest versions (#268)
appleboy Dec 26, 2024
ace1fd0
chore: switch old store to `snowdreamtech/redistore` (#269)
appleboy Dec 26, 2024
8ff78e1
chore: update Go version to 1.20 and adjust related configurations
appleboy Dec 26, 2024
2f25e13
ci: update GitHub actions for Redis and MongoDB
appleboy Dec 26, 2024
8d75c3d
chore: update Go version and dependencies for MongoDB integration (#270)
appleboy Dec 26, 2024
14e12ca
ci: add GitHub Actions workflow for Bearer PR checks
appleboy Dec 29, 2024
f361a4d
refactor: switch to structured logging with `log/slog` and update err…
appleboy Dec 29, 2024
ca18631
chore: update github.com/gin-gonic/gin to v1.10.0 (#272)
ypli0629 Jan 11, 2025
e8a158a
chore: switch Redis store dependency to `github.com/boj/redistore` (#…
appleboy Jan 17, 2025
6de0509
chore: update database dependencies to latest versions
appleboy Jan 17, 2025
8412413
ci: improve overall system performance and reliability
appleboy Feb 10, 2025
08332b7
ci: add Go 1.24 support in workflows and adjust test tolerances
appleboy Feb 12, 2025
6705bb2
chore: upgrade dependencies for improved stability and performance
appleboy Mar 3, 2025
24b7d1e
feat: add username parameter to store initialization functions
appleboy Mar 3, 2025
638c28d
chore: update Go version to 1.23 and refresh dependencies
appleboy Apr 7, 2025
5414a53
fix: refactor linting and session handling in Go codebase
appleboy Apr 7, 2025
830a1b9
refactor: refactor codebase for improved readability and context hand…
appleboy Apr 7, 2025
54c2d39
fix: refactor codebase for improved performance and maintainability
appleboy Apr 7, 2025
4d66e4e
fix: reverting Session() returning nil if session does not exist (iss…
rogersm May 22, 2025
44d4e36
chore: bump gin-gonic/gin to v1.10.1 for dependency update
appleboy May 22, 2025
8a33b63
ci: update golangci-lint to v2.1 in GitHub Actions workflow
appleboy May 22, 2025
12aa9f4
Added guard to split not to get out of bounds exception when testing …
rogersm May 22, 2025
4327f7e
feat: different stores for many sessions #144 (#282)
found-cake May 23, 2025
10bdc64
feat: filesystem store backend (#251)
geschke May 23, 2025
536c215
ci: integrate Trivy vulnerability scanning into CI workflow
appleboy Aug 2, 2025
b2b49a9
ci: update CI workflows for latest Go versions and config consistency
appleboy Aug 15, 2025
f0b9986
ci: integrate automated Trivy security scanning workflow
appleboy Nov 11, 2025
f9dd0ce
chore: upgrade Go version and refresh golang.org/x dependencies
appleboy Nov 30, 2025
0d74439
chore: remove bearer.yml workflow
appleboy Nov 30, 2025
1fe585d
chore(deps): bump actions/checkout from 4 to 6
appleboy Nov 30, 2025
eeb086e
chore: drop Go 1.23 support, require Go 1.24+
appleboy Nov 30, 2025
4fce299
chore(ci): update golangci-lint to v2.6
appleboy Nov 30, 2025
9a1aed7
style: modernize build tag syntax to use //go:build constraints
appleboy Nov 30, 2025
c2fb15f
Add Go 1.26 to GitHub Actions test matrix
appleboy Feb 13, 2026
7b3e83d
Update golangci-lint version to v2.9
appleboy Feb 13, 2026
94278a6
Upgrade GitHub Actions versions
appleboy Feb 13, 2026
77e1bcb
chore(ci): upgrade trivy-action from 0.33.1 to 0.35.0
appleboy Mar 8, 2026
3181018
chore(deps): upgrade gin to v1.12.0 and update CI Go versions
appleboy Mar 8, 2026
fe9f72a
ci(workflow): bump goreleaser/goreleaser-action from v6 to v7
appleboy Mar 8, 2026
9a54dc3
chore(deps): upgrade golang.org/x/text to v0.35.0
appleboy Mar 28, 2026
d819021
ci(actions): bump GitHub Actions dependencies
appleboy Mar 28, 2026
3e97f7a
ci(workflow): pin trivy-action to v0.35.0 tag
appleboy Apr 14, 2026
e3e232f
ci(workflow): bump trivy-action from v0.35.0 to v0.36.0
appleboy Apr 25, 2026
2deca16
ci(lint): bump golangci-lint to v2.12
appleboy May 9, 2026
bca79bc
fix(lint): address golangci-lint v2.12 findings
appleboy May 9, 2026
ea0a302
ci(lint): drop go 1.24 from matrix to match go.mod requirement
appleboy May 9, 2026
570877c
fix(lint): address remaining v2.12 lint findings
appleboy May 9, 2026
a736fe6
ci(actions): bump codecov/codecov-action from v6 to v7
appleboy Jun 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '41 23 * * 6'
- cron: "41 23 * * 6"

jobs:
analyze:
Expand All @@ -32,23 +32,23 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
language: ["go"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
23 changes: 11 additions & 12 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Goreleaser
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write
Expand All @@ -12,23 +12,22 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3

- name: Setup go
uses: actions/setup-go@v6
with:
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
go-version-file: go.mod
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16, 1.17, 1.18, 1.19, '1.20']
go: [1.25, 1.26]
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}

Expand All @@ -16,17 +16,17 @@ jobs:
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}

- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v9
with:
version: v1.51.1
args: --verbose --timeout 10m
version: v2.12
args: --verbose
44 changes: 32 additions & 12 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ on:
jobs:
# Label of the container job
runner-job:
# You must use a Linux environment when using service containers or container jobs
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
go: [1.25, 1.26]
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}

env:
GO111MODULE: on
GOPROXY: https://proxy.golang.org
steps:
- name: Start Redis
uses: supercharge/redis-github-action@1.4.0
uses: supercharge/redis-github-action@1.8.1
with:
redis-version: 4

- name: Start MongoDB 4.2
uses: supercharge/mongodb-github-action@1.8.0
uses: supercharge/mongodb-github-action@1.12.1
with:
mongodb-version: 4.2

Expand All @@ -33,15 +34,17 @@ jobs:
postgresql db: testdb
postgresql user: testuser
postgresql password: testpw
postgresql version: '14'
postgresql version: "14"

- uses: niden/actions-memcached@v7
- uses: niden/actions-memcached@v8

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}

- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}

Expand All @@ -50,4 +53,21 @@ jobs:
go test -v -covermode=atomic -coverprofile=coverage.out ./...

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v7

vulnerability-scanning:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@v0.36.0
with:
scan-type: "fs"
ignore-unfixed: true
format: "sarif"
output: "trivy-results.sarif"
exit-code: "1"
severity: "CRITICAL,HIGH"
56 changes: 56 additions & 0 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Trivy Security Scan

on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch: # Allow manual trigger

permissions:
contents: read
security-events: write # Required for uploading SARIF results

jobs:
trivy-scan:
name: Trivy Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Run Trivy vulnerability scanner (source code)
uses: aquasecurity/trivy-action@v0.36.0
with:
scan-type: 'fs'
scan-ref: '.'
scanners: 'vuln,secret,misconfig'
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH,MEDIUM'
ignore-unfixed: true

- name: Upload Trivy results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v4
if: always()
with:
sarif_file: 'trivy-results.sarif'

- name: Run Trivy scanner (table output for logs)
uses: aquasecurity/trivy-action@v0.36.0
if: always()
with:
scan-type: 'fs'
scan-ref: '.'
scanners: 'vuln,secret,misconfig'
format: 'table'
severity: 'CRITICAL,HIGH,MEDIUM'
ignore-unfixed: true
exit-code: '1'
50 changes: 50 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: "2"
linters:
default: none
enable:
- bodyclose
- dogsled
- dupl
- errcheck
- exhaustive
- gochecknoinits
- goconst
- gocritic
- gocyclo
- goprintffuncname
- gosec
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- staticcheck
- unconvert
- unparam
- unused
- whitespace
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
57 changes: 13 additions & 44 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,26 @@
project_name: queue

builds:
-
# If true, skip the build.
# Useful for library projects.
# Default is false
skip: true
- skip: true

changelog:
# Set it to true if you wish to skip the changelog generation.
# This may result in an empty release notes on GitHub/GitLab/Gitea.
skip: false

# Changelog generation implementation to use.
#
# Valid options are:
# - `git`: uses `git log`;
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
#
# Defaults to `git`.
use: git

# Sorts the changelog by the commit's messages.
# Could either be asc, desc or empty
# Default is empty
sort: asc

# Group commits messages by given regex and title.
# Order value defines the order of the groups.
# Proving no regex means all commits will be grouped under the default group.
# Groups are disabled when using github-native, as it already groups things by itself.
#
# Default is no groups.
use: github
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Enhancements'
- title: "Enhancements"
regexp: "^.*chore[(\\w)]*:+.*$"
order: 2
- title: "Refactor"
regexp: "^.*refactor[(\\w)]*:+.*$"
order: 3
- title: "Build process updates"
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
order: 4
- title: "Documentation updates"
regexp: ^.*?docs?(\(.+\))??!?:.+$
order: 4
- title: Others
order: 999

filters:
# Commit messages matching the regexp listed here will be removed from
# the changelog
# Default is empty
exclude:
- '^docs'
- 'CICD'
- typo
Loading