From a3048657b82708e73205d51e7854d2639821453c Mon Sep 17 00:00:00 2001 From: Security maintenance Date: Sat, 7 Nov 2026 11:16:37 +0000 Subject: [PATCH] Pin CI actions, exclude unattended dependency runs, and isolate deployment [skip ci] --- .forgejo/workflows/deploy.yml | 36 +++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index ac38248..aa281c9 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -16,10 +16,10 @@ jobs: runs-on: docker steps: - - uses: actions/checkout@v4 + - uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 - name: Setup Node - uses: actions/setup-node@v4 + uses: https://github.com/actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 with: node-version-file: '.nvmrc' cache: 'npm' @@ -47,7 +47,7 @@ jobs: - name: Upload Playwright report if: failure() - uses: actions/upload-artifact@v4 + uses: https://github.com/actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 with: name: playwright-report path: | @@ -55,9 +55,37 @@ jobs: test-results/ retention-days: 7 + - name: Upload static site artifact 1 + if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') }} + uses: https://github.com/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 + with: + name: pages-build-0 + 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/') }} + 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')) }} + runs-on: pages + container: + image: node:22-bookworm@sha256:63538dfe497cc29dfafdda25ada09b46db68a3f4cc205abf1f5d6bf0913f3384 + volumes: + - /pages/fleeting:/pages/fleeting + concurrency: + group: pages-deploy-fleeting-garden + cancel-in-progress: false + steps: + - name: Download static site artifact 1 + uses: https://github.com/actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a + with: + name: pages-build-0 + path: dist - name: Copy build to host pages mount if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main + uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@a415e2a50992af99b7b6dd3f02cca372d87b11f6 with: source: dist target: fleeting