Skip to content

Repo sync

Repo sync #650

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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./.github/actions/node-npm-setup
- name: Validate all asset images
run: npm run validate-asset-images