Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
95619b9
chore: add github workflows
muhlemmer Mar 24, 2023
7dafc9a
chore: change package path for testing
muhlemmer Mar 24, 2023
034da48
feat: change package path
muhlemmer Mar 24, 2023
02736e4
Bump actions/add-to-project from 0.4.1 to 0.5.0
dependabot[bot] Apr 22, 2023
ad1e01f
Bump codecov/codecov-action from 3.1.1 to 3.1.4
dependabot[bot] May 22, 2023
c845e9b
Merge pull request #1 from zitadel/dependabot/github_actions/actions/…
muhlemmer Nov 15, 2024
5bf4eb6
chore(deps): upgrade go to v1.23 (#6)
muhlemmer Nov 15, 2024
3c6f9d0
Merge pull request #5 from zitadel/dependabot/github_actions/codecov/…
muhlemmer Nov 15, 2024
fbcdc6a
chore: updating go to 1.23.7 (#16)
kkrime Mar 21, 2025
f9d9bfa
Bump actions/add-to-project from 0.5.0 to 1.0.2 (#7)
dependabot[bot] Mar 21, 2025
47fe27d
Bump github/codeql-action from 2 to 3 (#9)
dependabot[bot] Mar 21, 2025
2774f7e
Bump actions/setup-go from 4 to 5 (#10)
dependabot[bot] Mar 21, 2025
29d6266
Bump actions/checkout from 3 to 4 (#11)
dependabot[bot] Mar 21, 2025
d34ba91
Bump codecov/codecov-action from 3.1.4 to 5.3.1 (#15)
dependabot[bot] Mar 21, 2025
548ef95
chore: upgrade go to 1.24.10
wim07101993 Dec 4, 2025
4786ffb
ci: use latest ubuntu version for github runners (#29)
wim07101993 Dec 17, 2025
33779aa
[GPT-98] Update go version & add verification/testing tools (#200)
apoorvajagtap Jul 26, 2023
4770c7b
fix misspell (#192)
YuyaAbo Jul 30, 2023
154b12f
update GitHub workflows (#205)
coreydaley Oct 18, 2023
8cea7b2
Remove log.Fatal() usage in encoder.go (#207)
h2570su Jan 18, 2024
a86d42f
Add default tag (#183)
zak905 Feb 10, 2024
419a5cc
update readme: add informations about the default tag option usage
zak905 Feb 19, 2024
9c25058
fix: if default element type of value are setted in slice , raise error
lll-lll-lll-lll Apr 4, 2024
95c7b8f
fix: add test
lll-lll-lll-lll Apr 4, 2024
2b94d1c
fix: test data
lll-lll-lll-lll Apr 6, 2024
1b632a9
fix: decode error message
lll-lll-lll-lll Apr 12, 2024
c9e4629
fix:test: add assertion
lll-lll-lll-lll Apr 14, 2024
01a72cd
fix:test: fix comment
lll-lll-lll-lll Apr 14, 2024
4fa7028
fix delete pointer slice test
lll-lll-lll-lll Apr 16, 2024
595717f
fix: fix assertion test
lll-lll-lll-lll Apr 16, 2024
c3913e4
fix: indirection through nil pointer to embedded struct (#211)
morus12 Jun 3, 2024
be9af1c
Merge pull request from GHSA-3669-72x9-r9p3
bharat-rajani Jun 29, 2024
ac7e138
Update release.yml
wim07101993 Jan 5, 2026
d11da69
chore: Bump actions/checkout from 4 to 5 (#20)
dependabot[bot] Jan 5, 2026
27f7af4
chore: Bump cycjimmy/semantic-release-action from 3 to 5 (#22)
dependabot[bot] Jan 5, 2026
ed5b4a7
chore: Bump actions/setup-go from 5 to 6 (#23)
dependabot[bot] Jan 5, 2026
28d61cd
chore: Bump codecov/codecov-action from 5.4.0 to 5.5.1 (#24)
dependabot[bot] Jan 5, 2026
66df4d4
chore: Bump github/codeql-action from 3 to 4 (#25)
dependabot[bot] Jan 5, 2026
6b7bdce
Merge branch 'main' into chore/upgrade-go
wim07101993 Jan 5, 2026
d04eba8
Merge remote-tracking branch 'origin/chore/upgrade-go' into chore/upg…
wim07101993 Jan 5, 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
70 changes: 0 additions & 70 deletions .circleci/config.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
; https://editorconfig.org/

root = true

[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
indent_style = tab
indent_size = 4

[*.md]
indent_size = 4
trim_trailing_whitespace = false

eclint_indent_style = unset
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: 🐛 Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 🚀 Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
time: '04:00'
open-pull-requests-limit: 10
commit-message:
prefix: chore
include: scope
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly

8 changes: 0 additions & 8 deletions .github/release-drafter.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "Code scanning - action"

on:
push:
branches: [main,next]
pull_request:
# The branches below must be a subset of the branches above
branches: [main,next]
schedule:
- cron: '0 11 * * 0'

jobs:
CodeQL-Build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
# Override language selection by uncommenting this and choosing your languages
with:
languages: go

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
18 changes: 18 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Add new issues to product management project

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.2
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/zitadel/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release
on:
push:
branches:
- main
- next
tags-ignore:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
go: ['1.24', '1.25']
name: Go ${{ matrix.go }} test
steps:
- uses: actions/checkout@v5
- name: Setup go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- run: go test -race -v -coverprofile=profile.cov .
- uses: codecov/codecov-action@v5.5.1
with:
file: ./profile.cov
name: codecov-go
release:
runs-on: ubuntu-24.04
needs: [test]
if: ${{ github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Source checkout
uses: actions/checkout@v5
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v5
with:
dry_run: false
semantic_version: 18.0.1
extra_plugins: |
@semantic-release/exec@6.0.3
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage.coverprofile
11 changes: 11 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
branches: [
{name: "main"},
{name: "next", prerelease: true},
],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
};
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012 Rodrigo Moraes. All rights reserved.
Copyright (c) 2023 The Gorilla Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand Down
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
GO_LINT=$(shell which golangci-lint 2> /dev/null || echo '')
GO_LINT_URI=github.com/golangci/golangci-lint/cmd/golangci-lint@latest

GO_SEC=$(shell which gosec 2> /dev/null || echo '')
GO_SEC_URI=github.com/securego/gosec/v2/cmd/gosec@latest

GO_VULNCHECK=$(shell which govulncheck 2> /dev/null || echo '')
GO_VULNCHECK_URI=golang.org/x/vuln/cmd/govulncheck@latest

.PHONY: golangci-lint
golangci-lint:
$(if $(GO_LINT), ,go install $(GO_LINT_URI))
@echo "##### Running golangci-lint"
golangci-lint run -v

.PHONY: gosec
gosec:
$(if $(GO_SEC), ,go install $(GO_SEC_URI))
@echo "##### Running gosec"
gosec ./...

.PHONY: govulncheck
govulncheck:
$(if $(GO_VULNCHECK), ,go install $(GO_VULNCHECK_URI))
@echo "##### Running govulncheck"
govulncheck ./...

.PHONY: verify
verify: golangci-lint gosec govulncheck

.PHONY: test
test:
@echo "##### Running tests"
go test -race -cover -coverprofile=coverage.coverprofile -covermode=atomic -v ./...
Loading
Loading