Make sure the leaflet with the tarot template is build #4
Workflow file for this run
This file contains 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: "tagged-release" | |
on: | |
push: | |
tags: | |
- "v*" | |
permissions: | |
contents: read | |
jobs: | |
hardening: | |
name: Harden runner | |
uses: ./.github/workflows/hardening.yaml | |
tagged-release: | |
name: "Tagged Release" | |
needs: hardening | |
permissions: | |
contents: write | |
runs-on: "ubuntu-latest" | |
steps: | |
# Make sure we have some code to test | |
- name: Harden Runner | |
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
azure.archive.ubuntu.com:80 | |
esm.ubuntu.com:443 | |
files.pythonhosted.org:443 | |
github-cloud.githubusercontent.com:443 | |
github.com:443 | |
motd.ubuntu.com:443 | |
packages.microsoft.com:443 | |
ppa.launchpadcontent.net:443 | |
pypi.org:443 | |
opencre.org:443 | |
codeclimate.com:443 | |
d3iz1jjs17r6kg.cloudfront.net:443 | |
keys.openpgp.org:443 | |
api.codeclimate.com:443 | |
uploads.github.com:443 | |
- name: Checkout repository | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
# Set the pip environment up | |
- name: Get Python | |
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: '3.10' | |
cache: 'pipenv' # caching pip dependencies | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt --require-hashes | |
pipenv install --ignore-pipfile --dev | |
# Run the tests | |
- name: Run unit tests | |
run: pipenv run python -m unittest discover -s "tests/scripts" -p "*_utest.py" | |
- name: Run integration | |
run: pipenv run python -m unittest discover -s "tests/scripts" -p "*_itest.py" | |
# Test coverage reports | |
- name: Check test coverage - run tests | |
run: pipenv run coverage run -m unittest discover -s "tests/scripts" -p "*_*test.py" | |
- name: Check test coverage - generate xml | |
run: pipenv run coverage xml | |
- name: Check test coverage - Report | |
run: pipenv run coverage report --fail-under 85 scripts/convert* | |
- name: Generate new output file | |
run: | | |
pipenv run python scripts/convert.py -l all -lt all -t all -v 1.22 -e webapp | |
pipenv run python scripts/convert.py -l all -lt all -t all -v 2.00 -e webapp | |
pipenv run python scripts/convert.py -l en -lt all -t all -v 1.00 -e mobileapp | |
zip output/owasp_cornucopia_mobileapp_1.00_en.zip output/owasp_cornucopia_mobileapp_1.00_cards_bridge_en.idml output/owasp_cornucopia_mobileapp_1.00_cards_tarot_en.idml output/owasp_cornucopia_mobileapp_1.00_leaflet_bridge_en.idml output/owasp_cornucopia_mobileapp_1.00_leaflet_tarot_en.idml | |
zip output/owasp_cornucopia_webapp_1.22_en.zip output/owasp_cornucopia_webapp_1.22_cards_bridge_en.idml output/owasp_cornucopia_webapp_1.22_cards_tarot_en.idml output/owasp_cornucopia_webapp_1.22_leaflet_bridge_en.idml output/owasp_cornucopia_webapp_1.22_leaflet_tarot_en.idml | |
zip output/owasp_cornucopia_webapp_1.22_es.zip output/owasp_cornucopia_webapp_1.22_cards_bridge_es.idml output/owasp_cornucopia_webapp_1.22_cards_tarot_es.idml output/owasp_cornucopia_webapp_1.22_leaflet_bridge_es.idml output/owasp_cornucopia_webapp_1.22_leaflet_tarot_es.idml | |
zip output/owasp_cornucopia_webapp_1.22_fr.zip output/owasp_cornucopia_webapp_1.22_cards_bridge_fr.idml output/owasp_cornucopia_webapp_1.22_cards_tarot_fr.idml output/owasp_cornucopia_webapp_1.22_leaflet_bridge_fr.idml output/owasp_cornucopia_webapp_1.22_leaflet_tarot_fr.idml | |
zip output/owasp_cornucopia_webapp_1.22_nl.zip output/owasp_cornucopia_webapp_1.22_cards_bridge_nl.idml output/owasp_cornucopia_webapp_1.22_cards_tarot_nl.idml output/owasp_cornucopia_webapp_1.22_leaflet_bridge_nl.idml output/owasp_cornucopia_webapp_1.22_leaflet_tarot_nl.idml | |
zip output/owasp_cornucopia_webapp_1.22_no-nb.zip output/owasp_cornucopia_webapp_1.22_cards_bridge_no-nb.idml output/owasp_cornucopia_webapp_1.22_cards_tarot_no-nb.idml output/owasp_cornucopia_webapp_1.22_leaflet_bridge_no-nb.idml output/owasp_cornucopia_webapp_1.22_leaflet_tarot_no-nb.idml | |
zip output/owasp_cornucopia_webapp_1.22_pt-br.zip output/owasp_cornucopia_webapp_1.22_cards_bridge_pt-br.idml output/owasp_cornucopia_webapp_1.22_cards_tarot_pt-br.idml output/owasp_cornucopia_webapp_1.22_leaflet_bridge_pt-br.idml output/owasp_cornucopia_webapp_1.22_leaflet_tarot_pt-br.idml | |
zip output/owasp_cornucopia_webapp_2.00_en.zip output/owasp_cornucopia_webapp_2.00_cards_bridge_en.idml output/owasp_cornucopia_webapp_2.00_cards_tarot_en.idml output/owasp_cornucopia_webapp_2.00_leaflet_bridge_en.idml output/owasp_cornucopia_webapp_2.00_leaflet_tarot_en.idml | |
zip output/owasp_cornucopia_webapp_2.00_es.zip output/owasp_cornucopia_webapp_2.00_cards_bridge_es.idml output/owasp_cornucopia_webapp_2.00_cards_tarot_es.idml output/owasp_cornucopia_webapp_2.00_leaflet_bridge_es.idml output/owasp_cornucopia_webapp_2.00_leaflet_tarot_es.idml | |
zip output/owasp_cornucopia_webapp_2.00_fr.zip output/owasp_cornucopia_webapp_2.00_cards_bridge_fr.idml output/owasp_cornucopia_webapp_2.00_cards_tarot_fr.idml output/owasp_cornucopia_webapp_2.00_leaflet_bridge_fr.idml output/owasp_cornucopia_webapp_2.00_leaflet_tarot_fr.idml | |
zip output/owasp_cornucopia_webapp_2.00_nl.zip output/owasp_cornucopia_webapp_2.00_cards_bridge_nl.idml output/owasp_cornucopia_webapp_2.00_cards_tarot_nl.idml output/owasp_cornucopia_webapp_2.00_leaflet_bridge_nl.idml output/owasp_cornucopia_webapp_2.00_leaflet_tarot_nl.idml | |
zip output/owasp_cornucopia_webapp_2.00_no-nb.zip output/owasp_cornucopia_webapp_2.00_cards_bridge_no-nb.idml output/owasp_cornucopia_webapp_2.00_cards_tarot_no-nb.idml output/owasp_cornucopia_webapp_2.00_leaflet_bridge_no-nb.idml output/owasp_cornucopia_webapp_2.00_leaflet_tarot_no-nb.idml | |
zip output/owasp_cornucopia_webapp_2.00_pt-br.zip output/owasp_cornucopia_webapp_2.00_cards_bridge_pt-br.idml output/owasp_cornucopia_webapp_2.00_cards_tarot_pt-br.idml output/owasp_cornucopia_webapp_2.00_leaflet_bridge_pt-br.idml output/owasp_cornucopia_webapp_2.00_leaflet_tarot_pt-br.idml | |
- uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1 | |
name: "Create release" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
CHANGELOG.md | |
LICENSE.md | |
README.md | |
creative-commons-attribution-3.0.txt | |
output/owasp_cornucopia_mobileapp_1.00_en.zip | |
output/owasp_cornucopia_webapp_1.22_en.zip | |
output/owasp_cornucopia_webapp_1.22_es.zip | |
output/owasp_cornucopia_webapp_1.22_fr.zip | |
output/owasp_cornucopia_webapp_1.22_nl.zip | |
output/owasp_cornucopia_webapp_1.22_no-nb.zip | |
output/owasp_cornucopia_webapp_1.22_pt-br.zip | |
output/owasp_cornucopia_webapp_1.22_guide_bridge_en.docx | |
output/owasp_cornucopia_webapp_1.22_guide_bridge_es.docx | |
output/owasp_cornucopia_webapp_1.22_guide_bridge_fr.docx | |
output/owasp_cornucopia_webapp_1.22_guide_bridge_nl.docx | |
output/owasp_cornucopia_webapp_1.22_guide_bridge_no-nb.docx | |
output/owasp_cornucopia_webapp_1.22_guide_bridge_pt-br.docx | |
output/owasp_cornucopia_webapp_2.00_en.zip | |
output/owasp_cornucopia_webapp_2.00_es.zip | |
output/owasp_cornucopia_webapp_2.00_fr.zip | |
output/owasp_cornucopia_webapp_2.00_nl.zip | |
output/owasp_cornucopia_webapp_2.00_no-nb.zip | |
output/owasp_cornucopia_webapp_2.00_pt-br.zip | |
output/owasp_cornucopia_webapp_2.00_guide_bridge_en.docx | |
output/owasp_cornucopia_webapp_2.00_guide_bridge_es.docx | |
output/owasp_cornucopia_webapp_2.00_guide_bridge_fr.docx | |
output/owasp_cornucopia_webapp_2.00_guide_bridge_nl.docx | |
output/owasp_cornucopia_webapp_2.00_guide_bridge_no-nb.docx | |
output/owasp_cornucopia_webapp_2.00_guide_bridge_pt-br.docx | |
resources/case/* | |
source/*.yaml |