Skip to content

猬嗭笍upgrade(ci): Bump anchore/sbom-action in /.github/workflows #330

猬嗭笍upgrade(ci): Bump anchore/sbom-action in /.github/workflows

猬嗭笍upgrade(ci): Bump anchore/sbom-action in /.github/workflows #330

Workflow file for this run

# SPDX-FileCopyrightText: 2022 WebReady Projects <https://github.com/wr-projects/>
#
# SPDX-License-Identifier: MIT
---
name: Pipeline - Push
on: push
permissions:
actions: write
contents: read
pull-requests: read
jobs:
gitguardian:
name: GitGuardian Scanner
runs-on: ubuntu-latest
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
steps:
# More info: https://github.com/step-security/harden-runner.
- name: Harden Runner
id: harden_runner
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.gitguardian.com:443
github.com:443
- name: Checkout & Authentication
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
fetch-depth: 0
# More info: https://github.com/GitGuardian/ggshield-action
- name: GitGuardian Scanner
uses: GitGuardian/gg-shield-action@2002482fb5990b486be5598ebcf48a8eba393fce
with:
args: -v --all-policies
env:
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.before }}
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
# More info: https://github.com/marketplace/actions/anchore-sbom-action
sbom:
needs: [gitguardian]
name: "SBOM"
runs-on: ubuntu-latest
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
steps:
# More info: https://github.com/step-security/harden-runner.
- name: Harden Runner
id: harden_runner
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c
with:
egress-policy: audit
- name: Downloading Syft
id: syft
uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610
- name: Generate SBOM file
uses: anchore/sbom-action@aa80c8c5bd439a416a62804f2151ab38c671a638
with:
artifact-name: sbom.spdx
format: spdx
dependency-snapshot: true
- name: Publish SBOM File
uses: anchore/sbom-action/publish-sbom@df80a981bc6edbc4e220a492d3cbe9f5547a6e75
with:
sbom-artifact-match: ".*\\.spdx$"