Skip to content

[security] Include DOMPurify in the demo bundle #2111

[security] Include DOMPurify in the demo bundle

[security] Include DOMPurify in the demo bundle #2111

Workflow file for this run

name: Style Check
on: [push, pull_request]
permissions:
contents: read
jobs:
python-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install ".[dev]"
pip install ".[jaxcpu]"
- name: Run isort
run: |
isort --diff --check .
- name: Run yapf
run: |
yapf --diff --recursive budoux tests scripts
- name: Run mypy
run: |
mypy budoux tests scripts
- name: Run flake8
if: ${{ always() }}
uses: suo/flake8-github-action@3e87882219642e01aa8a6bbd03b4b0adb8542c2a
with:
checkName: python-style-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
typescript-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: '16'
- run: npm install
working-directory: ./javascript
- run: npm run lint
working-directory: ./javascript
java-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: '17'
distribution: 'temurin'
- name: Google Java Format
uses: axel-op/googlejavaformat-action@dbff853fb823671ec5781365233bf86543b13215
with:
args: "--replace"
skip-commit: true
- name: Print diffs
run: git --no-pager diff --exit-code
markdown-style-check:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: markdownlint
uses: nosborn/github-action-markdown-cli@9b5e871c11cc0649c5ac2526af22e23525fa344d
with:
files: '**/*.md'
config_file: .markdownlint.yaml