{"id":17837016,"url":"https://github.com/peakle/security-rules","last_synced_at":"2025-07-05T13:33:56.946Z","repository":{"id":68960083,"uuid":"481751974","full_name":"peakle/security-rules","owner":"peakle","description":"Ruleguard security rules","archived":false,"fork":false,"pushed_at":"2022-04-19T19:35:04.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T04:27:07.038Z","etag":null,"topics":["bundle","go","go-ruleguard","golang","ruleguard","syntax-analysis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peakle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-14T21:17:10.000Z","updated_at":"2022-04-18T10:41:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"6251c9b9-2630-4e07-a948-5fd70d174a1f","html_url":"https://github.com/peakle/security-rules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakle%2Fsecurity-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakle%2Fsecurity-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakle%2Fsecurity-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakle%2Fsecurity-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peakle","download_url":"https://codeload.github.com/peakle/security-rules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819793,"owners_count":20839096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","go","go-ruleguard","golang","ruleguard","syntax-analysis"],"created_at":"2024-10-27T20:45:00.435Z","updated_at":"2025-04-02T13:21:31.874Z","avatar_url":"https://github.com/peakle.png","language":"Go","readme":"# security-rules\n\nRuleguard security rules\n\n[![Tests](https://github.com/peakle/security-rules/workflows/Tests/badge.svg)](https://github.com/peakle/security-rules/blob/main/.github/workflows/ci.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/peakle/security-rules)](https://goreportcard.com/report/github.com/peakle/security-rules)\n[![Go Reference](https://pkg.go.dev/badge/github.com/peakle/security-rules.svg)](https://pkg.go.dev/github.com/peakle/security-rules)\n\n### What are we checking now?:\n1. HTTP without SSL\n2. old hash functions like: md5\n3. TLS insecureSkipVerify option usage\n4. Old TLS versions\n5. Old cipher functions usage: like RC4\n7. Swagger body validation function usage\n\n### How to use:\n\nFull installation example: https://github.com/peakle/dc-rules-example\n\n1. Install rules:\n      ```shell\n      go get -v github.com/peakle/security-rules\n      ```\n2. Create rules.go file in your project like\n   in [example](https://github.com/delivery-club/delivery-club-rules/tree/main/example/rules.go)\n3. Add linter to your pipeline:\n    1. Like another one check in golangci-lint (will work for golangci-lint \u003ev1.27.0):\n\n        ``` yaml\n        linters:\n          enable:\n            - gocritic\n        linters-settings:\n          gocritic:\n            enabled-checks:\n              - ruleguard\n            settings:\n              ruleguard:\n                rules: \"YourDir/rules.go\"\n        ```\n    2. Like file watcher in Goland IDE (will work for golangci-lint \u003ev1.27.0):\n         1. add golangci-lint as `File Watcher` in IDE (Preferences -\u003e Tools -\u003e File Watchers -\u003e Add)\n         2. set `Arguments` field where `.golangci.yml` file will be like example above:\n\n        ```\n        run $FileDir$ --config=$ProjectFileDir$/.golangci.yml\n        ```\n\n### How to update to new rules version:\n\n1. update rules version in your go.mod file\n2. download new rules version:\n   ```shell\n   go get github.com/peakle/security-rules@newVersion\n   ```\n3. if you using golangci-lint update cache:\n   ```shell\n   golangci-lint cache clean\n   ```\n\n### How to add new checks:\n\n1. Ruleguard tour for newbees: https://go-ruleguard.github.io/by-example\n2. Fork repo \u0026\u0026 open PR :D\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakle%2Fsecurity-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeakle%2Fsecurity-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakle%2Fsecurity-rules/lists"}