From 123ff929b0c135b9056c336164c7024eddfe0960 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Thu, 11 Apr 2024 20:10:15 +0800 Subject: [PATCH 1/3] codecov to enable oidc auth --- .github/workflows/check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 64b606e..e55a9dc 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -31,8 +31,8 @@ jobs: run: deno publish --dry-run - name: Run Codecov - uses: codecov/codecov-action@v4.0.1 + uses: codecov/codecov-action@v4 with: slug: imcotton/at-key-gen-ssh-ed25519 - token: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true From d1cc1a5154144a966dc7893bf09cd52c45433c88 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Thu, 11 Apr 2024 20:12:16 +0800 Subject: [PATCH 2/3] deno dry-run with allow-dirty --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e55a9dc..292d3c4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -28,7 +28,7 @@ jobs: deno coverage - name: Run publish --dry-run - run: deno publish --dry-run + run: deno publish --dry-run --allow-dirty - name: Run Codecov uses: codecov/codecov-action@v4 From 2505c2d4462407a7195f4f910a195937d4af1df2 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Thu, 11 Apr 2024 20:16:55 +0800 Subject: [PATCH 3/3] CI add permissions: id-token: write --- .github/workflows/check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 292d3c4..a2cacbe 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -3,6 +3,7 @@ name: Checking on: push permissions: + id-token: write contents: read jobs: