File tree Expand file tree Collapse file tree
src/main/resources/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ module github.com/owasp/wrongsecrets/scripts/sort_contibutors
2+
3+ go 1.26
You can’t perform that action at this time.
0 commit comments