diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index e264b28..b383eea 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -29,7 +29,7 @@ jobs: - name: Setup go uses: actions/setup-go@v7 with: - go-version-file: go.tools.mod + go-version-file: go.mod cache-dependency-path: | go.sum go.tools.sum diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml deleted file mode 100644 index 4da9a80..0000000 --- a/.github/workflows/trivy.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Trivy Security Scan - -on: - pull_request: - branches: - - main - push: - branches: - - main - schedule: - - cron: "0 1 * * *" # Run daily at 1:00 AM UTC - -jobs: - trivy-scan: - name: Trivy Vulnerability Scan - runs-on: ubuntu-latest - permissions: - contents: read - security-events: write - actions: read - - steps: - - name: Checkout code - uses: actions/checkout@v7 - - - name: Run Trivy vulnerability scanner in fs mode - uses: aquasecurity/trivy-action@v0.36.0 - with: - scan-type: "fs" - scan-ref: "." - format: "sarif" - output: "trivy-results.sarif" - severity: "CRITICAL,HIGH,MEDIUM" - exit-code: "0" # Don't fail on vulnerabilities, only record them - - - name: Upload Trivy results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v4 - if: always() - with: - sarif_file: "trivy-results.sarif" - - - name: Run Trivy vulnerability scanner in table format - uses: aquasecurity/trivy-action@v0.36.0 - with: - scan-type: "fs" - scan-ref: "." - format: "table" - severity: "CRITICAL,HIGH" - exit-code: "1" # Fail only if CRITICAL/HIGH vulnerabilities found diff --git a/README.md b/README.md index 8c8d577..a9cbb8d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # CodeGPT [![Lint and Testing](https://github.com/appleboy/CodeGPT/actions/workflows/testing.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/testing.yml) -[![Security Scanning](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml) -[![Trivy Security Scan](https://github.com/appleboy/CodeGPT/actions/workflows/trivy.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/trivy.yml) +[![Trivy Security Scan](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml) [![codecov](https://codecov.io/gh/appleboy/CodeGPT/branch/main/graph/badge.svg)](https://codecov.io/gh/appleboy/CodeGPT) A CLI tool written in [Go](https://go.dev) that generates git commit messages or provides code review summaries using ChatGPT AI (gpt-5, gpt-4o, gpt-4 model). It also automatically installs a [git prepare-commit-msg hook](https://git-scm.com/docs/githooks). diff --git a/README.zh-cn.md b/README.zh-cn.md index 2288cda..47cd31a 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -1,8 +1,7 @@ # CodeGPT [![Lint and Testing](https://github.com/appleboy/CodeGPT/actions/workflows/testing.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/testing.yml) -[![Security Scanning](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml) -[![Trivy Security Scan](https://github.com/appleboy/CodeGPT/actions/workflows/trivy.yml/badge.svg)](https://github.com/appleboy/CodeGPT/actions/workflows/trivy.yml) +[![Trivy Security Scan](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml) [![codecov](https://codecov.io/gh/appleboy/CodeGPT/branch/main/graph/badge.svg)](https://codecov.io/gh/appleboy/CodeGPT) [![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/CodeGPT)](https://goreportcard.com/report/github.com/appleboy/CodeGPT) diff --git a/README.zh-tw.md b/README.zh-tw.md index 965a7f7..4ea363f 100644 --- a/README.zh-tw.md +++ b/README.zh-tw.md @@ -1,8 +1,7 @@ # CodeGPT [![Lint and Testing](https://github.com/appleboy/CodeGPT/actions/workflows/testing.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/testing.yml) -[![Security Scanning](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml) -[![Trivy Security Scan](https://github.com/appleboy/CodeGPT/actions/workflows/trivy.yml/badge.svg)](https://github.com/appleboy/CodeGPT/actions/workflows/trivy.yml) +[![Trivy Security Scan](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/appleboy/CodeGPT/actions/workflows/security.yml) [![codecov](https://codecov.io/gh/appleboy/CodeGPT/branch/main/graph/badge.svg)](https://codecov.io/gh/appleboy/CodeGPT) [![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/CodeGPT)](https://goreportcard.com/report/github.com/appleboy/CodeGPT)