Run Renovate validation on isolated containers and retain trusted human CI [skip ci]

This commit is contained in:
Andras Schmelczer 2026-11-07 13:06:00 +00:00
commit 723a29c04a
2 changed files with 17 additions and 7 deletions

View file

@ -9,15 +9,21 @@ on:
jobs: jobs:
build: 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: steps:
- name: Checkout repository - name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 uses: https://code.forgejo.org/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Build and publish image - name: Build and publish image
uses: https://git.schmelczer.dev/andras/ci-actions/docker-publish@18419c79a58572be1bb3759b334f43306be44a29 uses: https://git.schmelczer.dev/andras/ci-actions/docker-publish@c80f2f0701d7618f1f0b2bb52ebd332ea34b6e28
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ !(github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') ||
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }} startsWith(github.head_ref, 'renovate/')) && (github.event_name != 'pull_request') }}
if: ${{ github.actor != 'renovate-bot' && !startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.head_ref, 'renovate/') }} token: ${{ !(github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/')
|| startsWith(github.head_ref, 'renovate/')) && (secrets.FORGEJO_PACKAGE_TOKEN) || '' }}
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)) }}

View file

@ -8,13 +8,17 @@ on:
jobs: jobs:
shellcheck: shellcheck:
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: steps:
- uses: https://code.forgejo.org/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 - uses: https://code.forgejo.org/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Install ShellCheck - name: Install ShellCheck
run: apt-get update && apt-get install -y shellcheck run: apt-get update && apt-get install -y shellcheck
- name: Run ShellCheck - name: Run ShellCheck
run: find ./src -name '*.sh' -exec shellcheck {} + run: find ./src -name '*.sh' -exec shellcheck {} +
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)) }}