Sonatype Zion f641c6615e Release: 1.0.0
2024-07-23 19:33:44 +00:00
2024-07-23 13:46:10 +00:00
2024-07-22 20:22:43 +00:00
2024-07-23 19:33:44 +00:00
2024-07-23 19:33:44 +00:00
2024-07-23 08:26:53 -04:00
2024-07-23 08:26:53 -04:00
2024-07-23 13:46:10 +00:00

Sonatype GitHub Actions

A set of GitHub Actions for interacting with different Sonatype products.

The action set currently contains a couple of top-level actions:

Additionally, for developers who require more fine-grained control over the actions' configuration, a set of advanced actions are also provided:

Usage

Here's a typical usage example that evaluates an npm project against a Sonatype Lifecycle instance and retrieves the associated SBOM (Software Bill of Materials) file:

name: Sonatype Workflow
on: push
jobs:
  sonatype-cli:
    runs-on: ubuntu-latest
    steps:
      # Check out your code
      - name: Checkout
        id: checkout
        uses: actions/checkout@v4
      # Perform an evaluation 
      - name: Run evaluate action
        id: evaluate
        uses: sonatype/actions/evaluate@v1
        with:
          iq-server-url: https://your.lifecycle.server
          username: ${{ secrets.LIFECYCLE_USERNAME }}
          password: ${{ secrets.LIFECYCLE_PASSWORD }}
          application-id: lifecycle-app
          scan-targets: package.json package-lock.json
      # Fetch the SBOM file associated with the evaluation
      - name: Fetch SBOM
        uses: sonatype/actions/fetch-sbom@v1
        if: always()
        with:
          iq-server-url: https://your.lifecycle.server
          username: ${{ secrets.LIFECYCLE_USERNAME }}
          password: ${{ secrets.LIFECYCLE_PASSWORD }}
          application-id: lifecycle-app
          scan-id: ${{ steps.evaluate.outputs.scan-id }}
          sbom-standard: cyclonedx
          sbom-version: 1.5
          sbom-format: json
          artifact-name: lifecycle-app-sbom.json

For more details on the supported parameters for each action, refer to the individual action documentation.

Description
No description provided
Readme 12 MiB