mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-06-11 05:46:05 +00:00
e55d1d470e
Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com> Co-authored-by: Pepe Fagoaga <pepe@prowler.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
name: 'CI: Renovate Config Validate'
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- '.github/renovate.json'
|
|
- '.pre-commit-config.yaml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
env:
|
|
# renovate: datasource=pypi depName=prek
|
|
PREK_VERSION: '0.4.0'
|
|
|
|
jobs:
|
|
validate:
|
|
name: Validate Renovate config
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
|
|
with:
|
|
egress-policy: block
|
|
allowed-endpoints: >
|
|
api.github.com:443
|
|
github.com:443
|
|
objects.githubusercontent.com:443
|
|
codeload.github.com:443
|
|
release-assets.githubusercontent.com:443
|
|
pypi.org:443
|
|
files.pythonhosted.org:443
|
|
registry.npmjs.org:443
|
|
nodejs.org:443
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
|
|
|
|
- name: Install prek
|
|
run: uv tool install "prek==${PREK_VERSION}"
|
|
|
|
- name: Validate Renovate config
|
|
run: prek run renovate-config-validator --files .github/renovate.json
|