Missing requirement for sm3 moving session management to C7 about dig… #58
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: CI pipeline | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
# for security reasons the github actions are pinned to specific release versions | |
jobs: | |
link_checker: | |
name: Link checker | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout markdown | |
uses: actions/[email protected] | |
- name: Link Checker | |
uses: lycheeverse/[email protected] | |
with: | |
args: >- | |
--no-progress | |
--max-retries 1 | |
--retry-wait-time 10 | |
--max-concurrency 2 | |
'**/*.md' | |
'*.md' | |
fail: true | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
md_linter: | |
name: Lint web doc | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout markdown | |
uses: actions/[email protected] | |
- name: Lint markdown | |
uses: DavidAnson/[email protected] | |
with: | |
config: '.markdownlint.yaml' | |
globs: | | |
docs/**/*.md | |
docs/*.md | |
*.md | |
spell_checker: | |
name: Check spelling | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout markdown | |
uses: actions/[email protected] | |
- name: Spell check EN language | |
uses: rojopolis/[email protected] | |
with: | |
config_path: .spellcheck-en.yaml | |
- name: Spell check ES language | |
uses: rojopolis/[email protected] | |
with: | |
config_path: .spellcheck-es.yaml | |
# rojopolis/spellcheck-github-actions does not support PT-BR, | |
# only PT, and PT-BR is too different to pass a PT spellcheck | |
- name: Set up Python for PT-BR | |
uses: actions/[email protected] | |
with: | |
python-version: '3.10' | |
- name: Install pyspelling for PT-BR | |
run: | | |
python -m pip install --upgrade pip setuptools | |
python -m pip install pyspelling | |
sudo apt-get install aspell aspell-pt | |
- name: Spell check PT-BR language | |
run: | | |
python -m pyspelling --config .spellcheck-pt-br.yaml | |
deploy: | |
name: Deploy web doc | |
runs-on: ubuntu-latest | |
needs: [md_linter, spell_checker] | |
steps: | |
- name: Checkout markdown | |
uses: actions/[email protected] | |
- name: Install python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.x | |
- name: Install python packages | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install mkdocs | |
pip install mkdocs-material | |
pip install mkdocs-open-in-new-tab | |
pip install mkdocs-with-pdf | |
- name: Copy contributing tab files | |
run: | | |
cp code_of_conduct.md docs/. | |
cp contributing.md docs/. | |
cp license.txt docs/. | |
- name: Build check | |
run: mkdocs build | |
- name: Deploy | |
run: mkdocs gh-deploy --force --verbose | |
export_pdf: | |
name: Export PDFs | |
runs-on: ubuntu-latest | |
needs: [md_linter, spell_checker] | |
steps: | |
- name: Checkout markdown | |
uses: actions/[email protected] | |
- name: Install python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.x | |
- name: Install python packages | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install mkdocs | |
pip install mkdocs-material | |
pip install mkdocs-open-in-new-tab | |
pip install mkdocs-with-pdf | |
- name: Build check | |
run: mkdocs build | |
- name: Create EN PDF | |
run: mkdocs build --config-file mkdocs-pdf-en.yaml | |
- name: Upload EN PDF | |
uses: actions/[email protected] | |
with: | |
name: pdf-export-en | |
path: site/OWASP_Developer_Guide.pdf | |
- name: Create ES PDF | |
run: mkdocs build --config-file mkdocs-pdf-es.yaml | |
- name: Upload ES PDF | |
uses: actions/[email protected] | |
with: | |
name: pdf-export-es | |
path: site/OWASP_Developer_Guide-ES.pdf | |
- name: Create FA PDF | |
run: mkdocs build --config-file mkdocs-pdf-fa.yaml | |
- name: Upload FA PDF | |
uses: actions/[email protected] | |
with: | |
name: pdf-export-fa | |
path: site/OWASP_Developer_Guide-FA.pdf | |
- name: Create PT-BR PDF | |
run: mkdocs build --config-file mkdocs-pdf-pt-br.yaml | |
- name: Upload PT-BR PDF | |
uses: actions/[email protected] | |
with: | |
name: pdf-export-pt-br | |
path: site/OWASP_Developer_Guide-PT-BR.pdf |