Skip to content

feat(bump): trigger release #61

feat(bump): trigger release

feat(bump): trigger release #61

Workflow file for this run

---
name: "Commit"
on:
push:
branches:
- main
env:
python_version: "3.11"
defaults:
run:
shell: 'bash --noprofile --norc -Eeuo pipefail {0}'
jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout the repository
uses: actions/checkout@v7
with:
persist-credentials: 'false'
- name: Bootstrap repository
uses: ./.github/actions/bootstrap
with:
token: ${{ secrets.GITHUB_TOKEN }}
python-version: ${{ env.python_version }}
- name: Run pre-commit
run: task -v lint
test:
name: Test
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Checkout the repository
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: 'false'
- name: Bootstrap repository
uses: ./.github/actions/bootstrap
with:
token: ${{ secrets.GITHUB_TOKEN }}
python-version: ${{ env.python_version }}
- name: Validate the repo
run: task -v validate
- name: Set up QEMU for cross-platform emulation
uses: docker/setup-qemu-action@v4
- name: Build the image(s)
run: task -v build
env:
PLATFORM: ${{ matrix.platform }}
- name: Install license compliance tool
run: |
mkdir "${RUNNER_TEMP}/bin"
# Install grant via curl until official Docker image is available
# See: https://github.com/anchore/grant/issues/222
curl -sSfL https://raw.githubusercontent.com/anchore/grant/main/install.sh | sh -s -- -b "${RUNNER_TEMP}/bin"
chmod +x "${RUNNER_TEMP}/bin/grant"
echo "${RUNNER_TEMP}/bin" | tee -a "${GITHUB_PATH}"
- name: Run the tests
run: task -v test
env:
PLATFORM: ${{ matrix.platform }}
- name: Generate SBOM
run: task -v sbom
env:
PLATFORM: ${{ matrix.platform }}
- name: Set env var for unique artifact uploads
run: echo SANITIZED_PLATFORM="$(echo "${{ matrix.platform }}" | sed 's/\//_/g')" | tee -a "${GITHUB_ENV}"
- name: Upload SBOM artifacts
uses: actions/upload-artifact@v7
with:
name: sbom-${{ env.SANITIZED_PLATFORM }}
path: |
sbom.*.json
if-no-files-found: error
- name: Check license compliance
run: task -v license-check
env:
PLATFORM: ${{ matrix.platform }}
- name: Upload license check results
uses: actions/upload-artifact@v7
with:
name: license-check-${{ env.SANITIZED_PLATFORM }}
path: license-check.*.json
if-no-files-found: error
- name: Run vulnerability scan
run: task -v vulnscan
env:
PLATFORM: ${{ matrix.platform }}
- name: Upload vulnerability scan results
uses: actions/upload-artifact@v7
with:
name: vulns-${{ env.SANITIZED_PLATFORM }}
path: vulns.*.json
if-no-files-found: error