This action, uses the Rearm CLI to submit the release and xBOM metadata to a ReARM instance.
This action should always be used after the rearm-get-version action.
Submit Release metadata:
steps:
- uses: relizaio/rearm-add-release@1.2
with:
rearm_api_id: <api-id-obtained-from-rearmhub>
rearm_api_key: <api-key-obtained-from-rearmhub>
image_full_name: <registry/owner/image>
image_digest: <api-key-obtained-from-rearmhub>
rearm_full_version: <version obtained on get-version step>
rearm_build_start: <build start time recorded on get-version step>
rearm_build_status: <complete|rejected>The actions supports the following inputs:
rearm_api_id: The component API ID obtained from Rearm.rearm_api_key: The component API Key obtained from Rearm.image_full_name: Full name of the Docker image with registry prefiximage_name: Name of the imageimage_digest: SHA 256 digest of the image artifactrearm_full_version: Version obtained from Rearm for this releaserearm_short_version: Docker and filesystem safe version from Rearm for this releaserearm_build_start: Build start timerearm_build_status: Build status -complete- if build succeded,rejected- if build failedrearm_api_url: Rearm Hub API URL. Default ishttps://demo.rearmhq.com. (Optional)deliverable_type: Type of artifact created by this release [Docker, File] (Optional)commit_list: List of commits (Optional)rearm_component_id: Component UUID for this release if org-wide key is used (Optional)enable_sbom: Enables SBOM generation using cdxgen (Optional)source_code_sbom_type: Generates SBOM based on source code analysis, possible values:npm,helm,custom,other,none. Usecustomto followDockerfile.sbomwith expected output in/sbom/sbom.json. (Optional)registry_username: Username for the image registry. (Optional - needed for sbom generation)registry_password: Password for the image registry. (Optional - needed for sbom generation)registry_host: Image registry host. (Optional - needed for sbom generation)path: Path to the relative to root of the repo (default is '.'). (Optional - needed for sbom generation)send_sce_data: Sends Source Code entry data along with the release, required for SCE SBOMs. Default istrue. (Optional)last_commit: Last registered commit (Optional)enable_public_cosign_sigstore: Sign deliverables and SBOMs using public sigstore via cosign. Default isfalse. (Optional)enable_codeql: Enable CodeQL analysis. Default isfalse. (Optional)codeql_language: Language to analyze with CodeQL, usecustomto followDockerfile.sarifwith expected output in/sarif/results.sarif. (Optional)enable_securesbom: Enable SecureSBOM signing of SBOMs by ShiftLeftCyber. Default isfalse. (Optional)securesbom_pub_key_id: Public key id to sign with SecureSBOM by ShiftLeftCyber (Optional)securesbom_host: SecureSBOM (by ShiftLeftCyber) host (Optional)securesbom_api_key: SecureSBOM (by ShiftLeftCyber) API key (Optional)finalize_release: Finalize the release after adding it (true/false). Default istrue. (Optional)