Add FSCTv3 Common SBOM Baseline Attributes checker #193
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: build | |
on: | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v4 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
# use --pre flag to enable use of prerelease package versions | |
pipenv install | |
pipenv install pytest coverage | |
- name: Test with pytest | |
env: | |
# This token is provided by Actions, | |
# you do not need to create your own token | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
pipenv run coverage run -m pytest | |
pipenv run coverage xml -o coverage/python.xml |