Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 11 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
contents: read
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: 'false'

- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
Expand Down Expand Up @@ -56,6 +58,7 @@ jobs:
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: 'false'
fetch-depth: 0

- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
Expand Down Expand Up @@ -93,6 +96,9 @@ jobs:
contents: read
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: 'false'

- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: 'go.mod'
Expand All @@ -116,6 +122,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: 'false'
fetch-depth: 0

- name: Lint Code Base
Expand All @@ -124,13 +131,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MULTI_STATUS: false
LINTER_RULES_PATH: .
GITHUB_ACTIONS_ZIZMOR_CONFIG_FILE: ./.github/zizmor.yml
VALIDATE_ALL_CODEBASE: true
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
VALIDATE_EDITORCONFIG: true
VALIDATE_ENV: true
# VALIDATE_GO_RELEASER: true
VALIDATE_GO_RELEASER: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GITHUB_ACTIONS_ZIZMOR: true
VALIDATE_HTML: true
VALIDATE_JSON: true
VALIDATE_NATURAL_LANGUAGE: true
Expand Down Expand Up @@ -158,6 +167,7 @@ jobs:
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: 'false'
fetch-depth: 0

- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ on:
- labeled
- unlabeled

permissions: {}

jobs:
required-labels-missing:
name: required labels missing
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: check
if: >-
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ jobs:

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: 'false'

- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: 'true'
repository: ${{ github.repository }}.wiki
path: wiki.git

Expand Down
3 changes: 3 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rules:
cache-poisoning:
disable: true
3 changes: 3 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ linters:
- name: error-return
- name: error-strings
- name: errorf
- name: forbidden-call-in-wg-go
- name: get-return
- name: identical-branches
- name: if-return
- name: import-alias-naming
- name: import-shadowing
- name: increment-decrement
- name: inefficient-map-lookup
- name: indent-error-flow
- name: modifies-parameter
- name: modifies-value-receiver
Expand Down Expand Up @@ -106,6 +108,7 @@ linters:
- name: time-naming
- name: unconditional-recursion
- name: unexported-naming
- name: unnecessary-if
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
Expand Down