feat(parser): add Windows PE parser #8990
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened, edited] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
linting: | |
name: Linting | |
runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint', 'mypy', 'interrogate'] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install pre-commit | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade setuptools | |
python -m pip install --upgrade pre-commit | |
pre-commit install | |
- name: Run ${{ matrix.tool }} using pre-commit | |
if: ${{ matrix.tool != 'gitlint' }} | |
run: | | |
pre-commit run ${{ matrix.tool }} --all-files | |
- name: Run gitlint | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
if: ${{ github.event_name == 'pull_request' && matrix.tool == 'gitlint' }} | |
run: | | |
python -m pip install --upgrade gitlint | |
echo "$TITLE" | gitlint | |