Skip to content

Repo sync

Repo sync #848

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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/node-npm-setup
- name: Validate all asset images
run: npm run validate-asset-images