1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
docs/.github/workflows/validate-asset-images.yml
dependabot[bot] b2494d4b41 Bump actions/checkout from 5.0.0 to 6.0.0 (#58616)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-01 17:22:43 +00:00

29 lines
821 B
YAML

name: Validate asset images
# **What it does**: Run ./src/assets/scripts/validate-asset-images.ts on all images in assets/
# **Why we have it**: To protect from innocent and potentially malicious bad image assets
# **Who does it impact**: Docs content.
on:
workflow_dispatch:
pull_request:
paths:
- 'assets/**'
- '.github/workflows/validate-asset-images.yml'
permissions:
contents: read
jobs:
validate-asset-images:
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: ./.github/actions/node-npm-setup
- name: Validate all asset images
run: npm run validate-asset-images