3939 path : ~/.local/share/virtualenvs
4040 key : ${{ runner.os }}-python-${{ env.python_version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
4141 - name : Install the dependencies
42- run : python -m pip install --upgrade pipenv
42+ run : |
43+ python -m pip install --upgrade pipenv
44+ mkdir "${RUNNER_TEMP}/bin"
45+ curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b "${RUNNER_TEMP}/bin"
46+ chmod +x "${RUNNER_TEMP}/bin/syft"
47+ curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b "${RUNNER_TEMP}/bin"
48+ chmod +x "${RUNNER_TEMP}/bin/grype"
49+ echo "${RUNNER_TEMP}/bin" >> "${GITHUB_PATH}"
4350 - name : Install Task
4451 uses : arduino/setup-task@v1
4552 - name : Initialize the repo
5461 run : task -v test -- debug
5562 env :
5663 PLATFORM : ${{ matrix.platform }}
64+ - name : Generate the SBOMs
65+ run : task -v sbom
66+ env :
67+ PLATFORM : ${{ matrix.platform }}
68+ - name : Upload the SBOMs to GitHub
69+ uses : actions/upload-artifact@v3
70+ with :
71+ name : SBOM
72+ path : sbom.*.json
73+ if-no-files-found : error
74+ - name : Generate vuln scan results
75+ run : task -v vulnscan
76+ env :
77+ PLATFORM : ${{ matrix.platform }}
78+ - name : Upload the vuln scan results to GitHub
79+ uses : actions/upload-artifact@v3
80+ with :
81+ name : Vulns
82+ path : vulns.*.json
83+ if-no-files-found : error
5784 distribute :
5885 name : Distribute
5986 needs : [test]
6592 - name : Checkout the repository
6693 uses : actions/checkout@v3
6794 with :
68- token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
95+ token : ${{ secrets.SEISO_AUTOMATION_PAT }}
6996 fetch-depth : 0
7097 - name : Setup python
7198 uses : actions/setup-python@v4
@@ -76,7 +103,14 @@ jobs:
76103 path : ~/.local/share/virtualenvs
77104 key : ${{ runner.os }}-python-${{ env.python_version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
78105 - name : Install the dependencies
79- run : python -m pip install --upgrade pipenv
106+ run : |
107+ python -m pip install --upgrade pipenv
108+ mkdir "${RUNNER_TEMP}/bin"
109+ curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b "${RUNNER_TEMP}/bin"
110+ chmod +x "${RUNNER_TEMP}/bin/syft"
111+ curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b "${RUNNER_TEMP}/bin"
112+ chmod +x "${RUNNER_TEMP}/bin/grype"
113+ echo "${RUNNER_TEMP}/bin" >> "${GITHUB_PATH}"
80114 - name : Install Task
81115 uses : arduino/setup-task@v1
82116 - name : Initialize the repo
@@ -97,6 +131,26 @@ jobs:
97131 run : task -v publish
98132 env :
99133 PLATFORM : all
134+ - name : Generate the SBOMs
135+ run : task -v sbom
136+ env :
137+ PLATFORM : all
138+ - name : Upload the SBOMs to GitHub
139+ uses : actions/upload-artifact@v3
140+ with :
141+ name : SBOM
142+ path : sbom.*.json
143+ if-no-files-found : error
144+ - name : Generate vuln scan results
145+ run : task -v vulnscan
146+ env :
147+ PLATFORM : all
148+ - name : Upload the vuln scan results to GitHub
149+ uses : actions/upload-artifact@v3
150+ with :
151+ name : Vulns
152+ path : vulns.*.json
153+ if-no-files-found : error
100154 - name : Publish the release README to Docker Hub
101155 uses : peter-evans/dockerhub-description@v3
102156 with :
@@ -115,5 +169,9 @@ jobs:
115169 with :
116170 name : ${{ env.TAG }}
117171 tag_name : ${{ env.TAG }}
172+ generate_release_notes : true
173+ files : |
174+ vulns.*.json
175+ sbom.*.json
118176 draft : false
119177 prerelease : false
0 commit comments