Skip to content

Commit 7f4cd71

Browse files
authored
Merge pull request #2500 from OWASP/feature-updated-contributors-gen
Feature updated contributors gen
2 parents 68508df + 96c5f54 commit 7f4cd71

13 files changed

Lines changed: 769 additions & 490 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Sort Contributors Go Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- "scripts/sort_contibutors/**"
9+
- ".github/workflows/sort-contributors-go.yml"
10+
pull_request:
11+
branches: [master]
12+
paths:
13+
- "scripts/sort_contibutors/**"
14+
- ".github/workflows/sort-contributors-go.yml"
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
go-checks:
22+
name: build test lint security
23+
runs-on: ubuntu-latest
24+
defaults:
25+
run:
26+
working-directory: scripts/sort_contibutors
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v5
31+
32+
- name: Setup Go
33+
uses: actions/setup-go@v5
34+
with:
35+
go-version-file: scripts/sort_contibutors/go.mod
36+
cache-dependency-path: scripts/sort_contibutors/go.mod
37+
38+
- name: Build
39+
run: make build
40+
41+
- name: Test
42+
run: make test
43+
44+
- name: Vet
45+
run: make vet
46+
47+
- name: Install golangci-lint
48+
run: |
49+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
50+
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
51+
52+
- name: Lint
53+
run: make lint
54+
55+
- name: Security
56+
run: make security

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ Contributors:
417417
- [Adarsh A @adarsh-a-tw](https://www.github.com/adarsh-a-tw)
418418
- [Diamond Rivero @diamant3](https://www.github.com/diamant3)
419419
- [Norbert Wolniak @nwolniak](https://www.github.com/nwolniak)
420+
- [Robert Felber @rfelber](https://www.github.com/rfelber)
420421
- [Filip Chyla @fchyla](https://www.github.com/fchyla)
421422
- [Dmitry Litosh @Dlitosh](https://www.github.com/Dlitosh)
422423
- [Vineeth Jagadeesh @djvinnie](https://www.github.com/djvinnie)
@@ -429,6 +430,8 @@ Contributors:
429430
- [Madhu Akula @madhuakula](https://www.github.com/madhuakula)
430431
- [Mike Woudenberg @mikewoudenberg](https://www.github.com/mikewoudenberg)
431432
- [Spyros @northdpole](https://www.github.com/northdpole)
433+
- [Seershan Mitra @seershan](https://www.github.com/seershan)
434+
- [moeedrehman135 @moeedrehman135](https://www.github.com/moeedrehman135)
432435
- [RubenAtBinx @RubenAtBinx](https://www.github.com/RubenAtBinx)
433436
- [Alex Bender @alex-bender](https://www.github.com/alex-bender)
434437
- [Danny Lloyd @dannylloyd](https://www.github.com/dannylloyd)

renovate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@
9494
],
9595
"enabled": true
9696
},
97+
{
98+
"groupName": "sort-contibutors-go",
99+
"matchManagers": [
100+
"gomod"
101+
],
102+
"matchFileNames": [
103+
"scripts/sort_contibutors/go.mod"
104+
],
105+
"enabled": true
106+
},
97107
{
98108
"groupName": "pre-commit",
99109
"matchFileNames": [

scripts/sort_contibutors/Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
BINARY_NAME := sort-contributors
2+
BUILD_DIR := bin
3+
GO := go
4+
5+
.PHONY: build run lint test vet security clean
6+
7+
build:
8+
mkdir -p $(BUILD_DIR)
9+
$(GO) build -o $(BUILD_DIR)/$(BINARY_NAME) .
10+
11+
run: build
12+
./$(BUILD_DIR)/$(BINARY_NAME) $(ARGS)
13+
14+
lint:
15+
@command -v golangci-lint >/dev/null 2>&1 || { \
16+
echo "golangci-lint not found. Install from https://golangci-lint.run/usage/install/"; \
17+
exit 1; \
18+
}
19+
golangci-lint run ./...
20+
21+
test:
22+
$(GO) test ./...
23+
24+
vet:
25+
$(GO) vet ./...
26+
27+
security:
28+
@command -v gosec >/dev/null 2>&1 || { \
29+
echo "gosec not found. Installing with: go install github.com/securego/gosec/v2/cmd/gosec@latest"; \
30+
GOBIN=$$(pwd)/.tools $(GO) install github.com/securego/gosec/v2/cmd/gosec@latest || exit 1; \
31+
PATH=$$(pwd)/.tools:$$PATH gosec ./...; \
32+
exit $$?; \
33+
}
34+
gosec ./...
35+
36+
clean:
37+
rm -rf $(BUILD_DIR) .tools

scripts/sort_contibutors/Pipfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/sort_contibutors/Pipfile.lock

Lines changed: 0 additions & 189 deletions
This file was deleted.
-4.96 KB
Binary file not shown.

scripts/sort_contibutors/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/owasp/wrongsecrets/scripts/sort_contibutors
2+
3+
go 1.26

0 commit comments

Comments
 (0)