From 135a240422c37286834f6e54b5df0f0db5ec6b27 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Sat, 16 May 2026 08:01:58 -0500 Subject: [PATCH 1/2] ci: fix lint jobs --- .github/workflows/lint.yml | 34 -------------------------------- .github/workflows/pr-ci.yml | 11 ++++------- .github/workflows/pre-commit.yml | 18 ----------------- 3 files changed, 4 insertions(+), 59 deletions(-) delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 11e3d75ad..000000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Lint - -on: - push: - branches: [main] - pull_request: - workflow_dispatch: - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - name: setup Go - uses: actions/setup-go@v6 - with: - go-version-file: go.mod - - - name: golangci-lint - uses: golangci/golangci-lint-action@v9 - with: - version: latest - args: ${{ github.event_name == 'pull_request' && '--new-from-rev=origin/main' || '' }} - - - name: megalinter - uses: oxsecurity/megalinter@v9 - if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VALIDATE_ALL_CODEBASE: false diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index aade43fce..796d6c225 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -8,20 +8,18 @@ on: jobs: precommit: - name: Pre-commit Gate + name: Pre-commit runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: j178/prek-action@v2 - lint-gate: + lint: name: Lint Gate runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - with: - fetch-depth: 0 - name: setup Go uses: actions/setup-go@v6 @@ -32,8 +30,7 @@ jobs: uses: golangci/golangci-lint-action@v9 with: version: latest - only-new-issues: false - args: ${{ github.event_name == 'pull_request' && '--new-from-rev=origin/main' || '' }} + only-new-issues: true can-read-secret: name: Can Read Secret @@ -52,7 +49,7 @@ jobs: build-cli: name: Build CLI Binary on ${{ matrix.runner }} - needs: [precommit, lint-gate] + needs: [precommit, lint] strategy: matrix: include: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 1643e9522..000000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Pre-commit - -on: - push: - branches: [main] - pull_request: - -permissions: - contents: read - -jobs: - check: - name: Pre-commit Checks - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - - uses: j178/prek-action@v2 From bea82e1661ee5aae4f21d4f8a1fae939b7d9d1cc Mon Sep 17 00:00:00 2001 From: Samuel K Date: Sat, 16 May 2026 08:05:16 -0500 Subject: [PATCH 2/2] fix: update job name --- .github/workflows/pr-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 796d6c225..d39919639 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -16,7 +16,7 @@ jobs: - uses: j178/prek-action@v2 lint: - name: Lint Gate + name: Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v6