From fea037d40350456ac17cd91869ef4fe3a7edbd43 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 17 Aug 2025 17:50:19 +0000 Subject: [PATCH] actions: context: verify RUN_ID (#951) Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/951 Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- actions/example-context/.forgejo/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/actions/example-context/.forgejo/workflows/test.yml b/actions/example-context/.forgejo/workflows/test.yml index 1a092cd9..2d3576fb 100644 --- a/actions/example-context/.forgejo/workflows/test.yml +++ b/actions/example-context/.forgejo/workflows/test.yml @@ -178,6 +178,15 @@ jobs: test "$FORGEJO_RUN_NUMBER" = "${{ forge.RUN_NUMBER }}" test "$FORGEJO_RUN_NUMBER" = "$GITHUB_RUN_NUMBER" + - name: FORGEJO_RUN_ID + run: | + set -x + echo "$FORGEJO_RUN_ID" | grep -E '^[0-9]+$' + test "$FORGEJO_RUN_ID" = "${{ env.FORGEJO_RUN_ID }}" + test "$FORGEJO_RUN_ID" = "${{ github.RUN_ID }}" + test "$FORGEJO_RUN_ID" = "${{ forge.RUN_ID }}" + test "$FORGEJO_RUN_ID" = "$GITHUB_RUN_ID" + - name: FORGEJO_SERVER_URL shell: bash run: |