workflows/release: split sign job, harden permissions (#106) #124
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: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint-source: | |
name: Lint Python | |
uses: trailofbits/.github/.github/workflows/[email protected] | |
with: | |
language: python | |
python-version: "3.8" | |
lint-md: | |
name: Lint Markdown | |
uses: trailofbits/.github/.github/workflows/[email protected] | |
with: | |
language: markdown | |
check-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: pyproject.toml | |
- run: python -m pip install . | |
- name: check-readme | |
run: | | |
diff \ | |
<( \ | |
awk '/@begin-abi3audit-help@/{f=1;next} /@end-abi3audit-help@/{f=0} f' \ | |
< README.md | sed '1d;$d' \ | |
) \ | |
<( \ | |
python -m abi3audit --help \ | |
) |