Skip to content

Bump github/codeql-action from 2.20.3 to 3.27.9 #4030

Bump github/codeql-action from 2.20.3 to 3.27.9

Bump github/codeql-action from 2.20.3 to 3.27.9 #4030

name: Sanitize Runbook
on:
pull_request:
types: [ opened, reopened, edited, ready_for_review ]
push:
env:
PR_NUMBER: ${{ github.event.number }}
jobs:
sanitize-runbooks:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%s')"
- name: Install system dependencies
run: |
pip install shyaml nbformat URLExtract
- name: All Runbooks
id: files
run: |
echo "all_runbook_files=$(find . -mindepth 2 -maxdepth 2 -name \*.ipynb | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Run Sanitize
id: sanity
run: |
echo "Running sanitize script on ${{ steps.files.outputs.all_runbooks_files }}"
/usr/bin/env python ./sanitize.py -v ${{ steps.files.outputs.all_runbook_files }}
- name: Run Region Test
run: |
/usr/bin/env python ./region_test.py
- name: Checkout Repository
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Pytype Python Checker
uses: theahura/pytypes-action@main
with:
args: --generate-config pytype.toml
- name: Run Static Analysis on the Runbooks
run: |