File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 2626
2727permissions :
2828 id-token : write
29- contents : read
29+ contents : write
3030 packages : read
3131
3232
@@ -167,3 +167,31 @@ jobs:
167167 git config user.name "Azory YData Bot"
168168 git commit -a -m "chore(bump): [CI] [DEV] bump ${{ env.COMPONENT }} package ${{ matrix.package }} to $VERSION"
169169 git push origin master
170+
171+
172+ static-analysis :
173+ name : Static Analysis
174+ runs-on :
175+ # - self-hosted
176+ # - large
177+ - ubuntu-22.04
178+
179+ steps :
180+ - uses : actions/checkout@v4
181+
182+ - name : Create SBOM
183+ uses : anchore/sbom-action@v0
184+ with :
185+ upload-artifact-retention : 1
186+ format : cyclonedx-json
187+ output-file : package-sbom.cyclonedx.json
188+
189+ - name : Configure AWS credentials
190+ uses : aws-actions/configure-aws-credentials@v4
191+ with :
192+ role-to-assume : ${{ secrets.AWS_S3_SBOMS_ROLE_ARN }}
193+ aws-region : ${{ env.AWS_S3_REGION }}
194+
195+ - name : Copy SBOM to S3
196+ run : |
197+ aws s3 cp package-sbom.cyclonedx.json s3://repos-sboms/${{ github.event.repository.name }}/package-sbom.cyclonedx.json
You can’t perform that action at this time.
0 commit comments