Skip to content

fix: adjust-checkout fetch depth #409

fix: adjust-checkout fetch depth

fix: adjust-checkout fetch depth #409

name: Validate YAML Recommendations
on:
pull_request:
branches:
- main
- dev-tools
paths:
- '**/*.yaml'
workflow_dispatch: {}
permissions:
contents: read
jobs:
yaml_file_check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Set up Python 3.x
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: 3.x
- name: Run YAML file check
run: |
python -u .github/scripts/validate-yaml-recommendations.py