Skip to content

chore: migrate Rust server runtime images from debian:trixie-slim to ubi-minimal #4184

chore: migrate Rust server runtime images from debian:trixie-slim to ubi-minimal

chore: migrate Rust server runtime images from debian:trixie-slim to ubi-minimal #4184

Workflow file for this run

name: Pre-commit Checks
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
types: [opened, synchronize, ready_for_review]
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
jobs:
ci-decision:
name: Full CI decision
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
run-full-ci: ${{ steps.decision.outputs.run-full-ci }}
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
persist-credentials: false
- name: Decide full CI scope
id: decision
shell: bash
env:
GH_TOKEN: ${{ github.token }}
WORKFLOW_FILE: pre-commit.yml
EVENT_NAME: ${{ github.event_name }}
EVENT_JSON: ${{ toJson(github.event) }}
GITHUB_API_URL: ${{ github.api_url }}
GITHUB_REPOSITORY_NAME: ${{ github.repository }}
GITHUB_REF_TYPE_VALUE: ${{ github.ref_type }}
GITHUB_SHA_VALUE: ${{ github.sha }}
run: python3 .github/scripts/secret_baseline_ci_decision.py
pre-commit:
needs: ci-decision
if: always() && (github.event_name != 'pull_request' || !github.event.pull_request.draft)
name: Run pre-commit hooks
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
persist-credentials: false
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.12"
- name: Set up Go
if: needs.ci-decision.result != 'success' || needs.ci-decision.outputs.run-full-ci != 'false'
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version: "1.25.x"
- name: Set up uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Run pre-commit
if: needs.ci-decision.result != 'success' || needs.ci-decision.outputs.run-full-ci != 'false'
run: make --no-print-directory pre-commit
- name: Run detect-secrets validation
if: needs.ci-decision.result == 'success' && needs.ci-decision.outputs.run-full-ci == 'false'
run: make --no-print-directory detect-secrets-hook