Skip to content

Commit edfee3c

Browse files
committed
Switch test workflow to Cloudflare Worker authentication
Replace PRIVATE_KEY with WORKER_URL pointing to the deployed worker. Add explicit permissions for OIDC (id-token: write), PR comments (pull-requests: write), and log access (actions: read). Remove the CppWarningNotifier environment since no secrets are needed. https://claude.ai/code/session_01NpiSv9DJeWXyK77tjPGt8F
1 parent eef0f22 commit edfee3c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ jobs:
3838
needs:
3939
- compile
4040
runs-on: ubuntu-latest
41-
environment:
42-
name: CppWarningNotifier
41+
permissions:
42+
id-token: write
43+
pull-requests: write
44+
actions: read
4345
steps:
4446
- uses: actions/checkout@v6
4547
- uses: ./
4648
with:
47-
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
49+
WORKER_URL: https://cpp-warning-notifier.ykakeyama3014.workers.dev
4850
RUN_ID: ${{ github.run_id }}
4951
JOB_ID: ${{ job.check_run_id }}
5052
STEP_REGEX: build-.*

0 commit comments

Comments
 (0)