From 6af71baa9782a7df794f268270836ba3e09f8acc Mon Sep 17 00:00:00 2001 From: Security maintenance Date: Sat, 7 Nov 2026 13:06:02 +0000 Subject: [PATCH] Run Renovate validation on isolated containers and retain trusted human CI [skip ci] --- .forgejo/workflows/deploy.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 263dcf0..c59a21e 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -13,11 +13,14 @@ concurrency: jobs: build: - runs-on: docker + runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref, + 'renovate/')) && 'renovate' || 'docker' }} steps: - uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 + with: + persist-credentials: false - name: Setup Node uses: https://github.com/actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 with: @@ -63,12 +66,14 @@ jobs: path: dist if-no-files-found: error retention-days: 1 - if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') }} + if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'), + github.event.pull_request.user.login)) }} build-pages: name: Deploy static site artifacts needs: build - if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') && ((github.event_name - == 'push' && github.ref == 'refs/heads/main')) }} + if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'), + github.event.pull_request.user.login)) && (!(github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, + 'refs/heads/renovate/') || startsWith(github.head_ref, 'renovate/'))) && ((github.event_name == 'push' && github.ref == 'refs/heads/main')) }} runs-on: pages container: image: node:22-bookworm@sha256:63538dfe497cc29dfafdda25ada09b46db68a3f4cc205abf1f5d6bf0913f3384 @@ -85,7 +90,7 @@ jobs: path: dist - name: Copy build to host pages mount if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@18419c79a58572be1bb3759b334f43306be44a29 + uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@c80f2f0701d7618f1f0b2bb52ebd332ea34b6e28 with: source: dist target: fleeting