This is an automated email from the ASF dual-hosted git repository.

hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-ent-adapter.git


The following commit(s) were added to refs/heads/master by this push:
     new c620bf4  ci: use goveralls CLI instead of the blocked third-party 
action
c620bf4 is described below

commit c620bf488b11138da9ecda89dd2c47e630000069
Author: Yang Luo <[email protected]>
AuthorDate: Thu Aug 6 17:54:57 2026 +0800

    ci: use goveralls CLI instead of the blocked third-party action
---
 .github/workflows/ci.yml | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8fd23d6..f54a99e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,15 +29,23 @@ jobs:
           - 5432:5432
 
     steps:
+      - uses: actions/checkout@v4
+
       - name: Set up Go
         uses: actions/setup-go@v5
         with:
           go-version: '1.23.0'
 
-      - uses: actions/checkout@v2
       - name: Run Unit tests
-        run: go test -v -coverprofile=./profile.cov ./...
+        run: go test -v -covermode=atomic -coverprofile=./profile.cov ./...
 
-      - uses: shogo82148/actions-goveralls@v1
-        with:
-          path-to-profile: ./profile.cov
\ No newline at end of file
+      # The ASF only permits actions from the apache/, github/ and actions/
+      # namespaces (plus an infra-managed allowlist), so the coverage upload
+      # runs the goveralls CLI directly instead of a third-party action.
+      - name: Send coverage to Coveralls
+        continue-on-error: true
+        env:
+          COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        run: |
+          go install github.com/mattn/goveralls@latest
+          "$(go env GOPATH)/bin/goveralls" -coverprofile=./profile.cov 
-service=github
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to