-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (31 loc) · 1.01 KB
/
update-sboms.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
- name: Setup Python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 #v4.7.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
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