Skip to content
Merged
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
56 changes: 56 additions & 0 deletions .github/workflows/sort-contributors-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Sort Contributors Go Checks

on:
push:
branches:
- master
paths:
- "scripts/sort_contibutors/**"
- ".github/workflows/sort-contributors-go.yml"
pull_request:
branches: [master]
paths:
- "scripts/sort_contibutors/**"
- ".github/workflows/sort-contributors-go.yml"
workflow_dispatch:

permissions:
contents: read

jobs:
go-checks:
name: build test lint security
runs-on: ubuntu-latest
defaults:
run:
working-directory: scripts/sort_contibutors

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: scripts/sort_contibutors/go.mod
cache-dependency-path: scripts/sort_contibutors/go.mod

- name: Build
run: make build

- name: Test
run: make test

- name: Vet
run: make vet

- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"

- name: Lint
run: make lint

- name: Security
run: make security
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ Contributors:
- [Adarsh A @adarsh-a-tw](https://www.github.com/adarsh-a-tw)
- [Diamond Rivero @diamant3](https://www.github.com/diamant3)
- [Norbert Wolniak @nwolniak](https://www.github.com/nwolniak)
- [Robert Felber @rfelber](https://www.github.com/rfelber)
- [Filip Chyla @fchyla](https://www.github.com/fchyla)
- [Dmitry Litosh @Dlitosh](https://www.github.com/Dlitosh)
- [Vineeth Jagadeesh @djvinnie](https://www.github.com/djvinnie)
Expand All @@ -429,6 +430,8 @@ Contributors:
- [Madhu Akula @madhuakula](https://www.github.com/madhuakula)
- [Mike Woudenberg @mikewoudenberg](https://www.github.com/mikewoudenberg)
- [Spyros @northdpole](https://www.github.com/northdpole)
- [Seershan Mitra @seershan](https://www.github.com/seershan)
- [moeedrehman135 @moeedrehman135](https://www.github.com/moeedrehman135)
- [RubenAtBinx @RubenAtBinx](https://www.github.com/RubenAtBinx)
- [Alex Bender @alex-bender](https://www.github.com/alex-bender)
- [Danny Lloyd @dannylloyd](https://www.github.com/dannylloyd)
Expand Down
10 changes: 10 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@
],
"enabled": true
},
{
"groupName": "sort-contibutors-go",
"matchManagers": [
"gomod"
],
"matchFileNames": [
"scripts/sort_contibutors/go.mod"
],
"enabled": true
},
{
"groupName": "pre-commit",
"matchFileNames": [
Expand Down
37 changes: 37 additions & 0 deletions scripts/sort_contibutors/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
BINARY_NAME := sort-contributors
BUILD_DIR := bin
GO := go

.PHONY: build run lint test vet security clean

build:
mkdir -p $(BUILD_DIR)
$(GO) build -o $(BUILD_DIR)/$(BINARY_NAME) .

run: build
./$(BUILD_DIR)/$(BINARY_NAME) $(ARGS)

lint:
@command -v golangci-lint >/dev/null 2>&1 || { \
echo "golangci-lint not found. Install from https://golangci-lint.run/usage/install/"; \
exit 1; \
}
golangci-lint run ./...

test:
$(GO) test ./...

vet:
$(GO) vet ./...

security:
@command -v gosec >/dev/null 2>&1 || { \
echo "gosec not found. Installing with: go install github.com/securego/gosec/v2/cmd/gosec@latest"; \
GOBIN=$$(pwd)/.tools $(GO) install github.com/securego/gosec/v2/cmd/gosec@latest || exit 1; \
PATH=$$(pwd)/.tools:$$PATH gosec ./...; \
exit $$?; \
}
gosec ./...

clean:
rm -rf $(BUILD_DIR) .tools
11 changes: 0 additions & 11 deletions scripts/sort_contibutors/Pipfile

This file was deleted.

189 changes: 0 additions & 189 deletions scripts/sort_contibutors/Pipfile.lock

This file was deleted.

Binary file not shown.
3 changes: 3 additions & 0 deletions scripts/sort_contibutors/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/owasp/wrongsecrets/scripts/sort_contibutors

go 1.26
Loading
Loading