add schema v3-5 additions (rpm tps) (#106) #107
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: "Update SBOMs" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: "3.10" | |
jobs: | |
Publish-SBOMS: | |
name: "Publish SBOMs" | |
runs-on: ubuntu-22.04-4core-16gb | |
# set the permissions granted to the github token to publish to ghcr.io | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- uses: actions/cache@v2 | |
with: | |
path: venv | |
key: ${{ hashFiles('requirements.txt') }}-${{ hashFiles('Makefile') }} | |
- name: Login to GitHub Container Registry | |
run: | | |
echo ${{ secrets.GITHUB_TOKEN }} | oras login ghcr.io --username ${{ github.actor }} --password-stdin | |
- name: Update and publish SBOMs | |
run: make update-and-publish-sboms |