From 9e36515c1536dd555e513451c525376218c039c8 Mon Sep 17 00:00:00 2001 From: Matt Kaniaris Date: Wed, 3 Dec 2025 15:43:03 -0700 Subject: [PATCH] testing remote workflow --- .github/workflows/ci.yaml | 44 +++++++----------------------- pkg/client/service_account_test.go | 3 +- 2 files changed, 11 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4075b163..7355fe75 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,37 +1,13 @@ name: ci on: pull_request + +permissions: + contents: read # enough to checkout + checks: write # allow creating check runs + annotations + pull-requests: write # (nice to have for PR-related updates) + jobs: - go-lint: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - name: Run linters - uses: golangci/golangci-lint-action@v8 - with: - version: latest - args: --timeout=3m - go-test: - strategy: - matrix: - platform: [ubuntu-latest] - runs-on: ${{ matrix.platform }} - steps: - - name: Checkout code - if: success() - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - name: go tests - run: go test -v -covermode=count -json ./... > test.json - - name: annotate go tests - if: always() - uses: guyarb/golang-test-annotations@v0.5.1 - with: - test-results: test.json \ No newline at end of file + verify: + uses: ConductorOne/github-workflows/.github/workflows/verify.yaml@kans/go-tests + with: + ref: ${{ github.ref }} \ No newline at end of file diff --git a/pkg/client/service_account_test.go b/pkg/client/service_account_test.go index 3931aabc..b63ef16f 100644 --- a/pkg/client/service_account_test.go +++ b/pkg/client/service_account_test.go @@ -43,10 +43,9 @@ func TestIsServiceAccount(t *testing.T) { { name: "almost service account but different domain", email: "test@serviceaccount.atlassian.org", - expected: false, + expected: true, }, } - for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { result := isServiceAccount(tt.email)