Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,18 @@ jobs:
poetry version ${{ github.ref_name }}
poetry publish --build
poetry install --no-interaction --no-root --with dev,docs --extras "asyncio"
poetry run jake ddt --output-format json -o bom.json --whitelist whitelist.json
- name: update version
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatic version bump
branch: main
file_pattern: pyproject.toml
- name: make sbom
uses: anchore/sbom-action@v0
with:
file: poetry.lock
format: cyclonedx-json
output-file: "${{ github.event.repository.name }}-sbom.json"
- name: build docs
run: |
mkdir gh-pages
Expand All @@ -58,10 +63,3 @@ jobs:
with:
branch: gh-pages
folder: gh-pages
- name: sbom
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bom.json
asset_name: bom.json
tag: ${{ github.ref }}
16 changes: 15 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,21 @@ jobs:
- name: run extra sanity checks
run: |
poetry run mypy
poetry run jake ddt --whitelist whitelist.json
scan:
runs-on: ubuntu-latest
steps:
- name: check out repository
uses: actions/checkout@v4
- name: make sbom
uses: anchore/sbom-action@v0
with:
file: poetry.lock
format: cyclonedx-json
output-file: "${{ github.event.repository.name }}-sbom.json"
- name: scan sbom
uses: anchore/scan-action@v6
with:
sbom: "${{ github.event.repository.name }}-sbom.json"
prerelease:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
Expand Down
Loading
Loading