> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/artifact-registry/3.0/platform-integrations/sto-scs-integration.md).

# Security Testing Orchestration and Supply Chain Security

Reference artifacts stored in Harness Artifacts from Security Testing Orchestration and Supply Chain Security pipeline steps, with no connector required.

[Security Testing Orchestration](https://developer.harness.io/security-testing-orchestration/) (STO) and [Supply Chain Security](https://developer.harness.io/software-supply-chain-assurance/) (SCS) integrate natively with Harness Artifacts, so you can reference a stored artifact directly in an STO or SCS pipeline step without configuring an external connector.

***

## How it works

An STO or SCS step that scans or attests an artifact takes a **Source**, and Harness Artifacts (HAR) is the default source type. When you select a Harness Artifacts registry and provide the artifact's `imageName:tag`, the step resolves the artifact directly from the registry at execution time. No Docker connector or stored credentials are required.

{% hint style="info" %}
**Example SCS stage**

Examples of SCS stages include generating a **Software Bill of Materials (SBOM)** or **Supply-chain Levels for Software Artifacts (SLSA)** provenance attestation.
{% endhint %}

## Before you begin

* A Harness account with Artifacts and either Security Testing Orchestration or Supply Chain Security enabled.
* An artifact already pushed to a Harness Artifacts registry. To create a registry, go to [Create a registry](https://developer.harness.io/artifact-registry/3.0/registries/create-a-registry.md).

## Reference an artifact in an STO or SCS step

1. **Open the pipeline stage**. Navigate to your pipeline and enter the **SCS** or **STO** stage.
2. **Add the step**. Select or add a new SCS or STO step.
3. **Select the source**. Under **Source**, select **HAR** (the default).
4. **Select the registry**. In the **Registry** field, select your Harness Artifacts registry, or add a new one.
5. **Identify the artifact**. Enter the artifact's `imageName:tag`, matching the name and tag exactly as it exists in the selected registry, so the step resolves the correct version at execution time.
6. **Apply the changes**. Select **Apply Changes**. No connector is required.

## SLSA Generation step parameters

When you add an SLSA Generation step to an SCS stage, provide:

* **Registry**: the Harness Artifacts registry that holds the artifact.
* **Image**: the artifact's image name.
* **Artifact Digest**: the artifact's `sha256` digest.

{% hint style="info" %}
The SLSA Generation step identifies the artifact by its digest, not by tag, so provide the exact `sha256` hash of the image version you are attesting.
{% endhint %}

## Troubleshooting

<details>

<summary>The registry does not appear in the Registry field</summary>

Confirm that the registry exists in the current organization and project scope, and that the pipeline identity has view access to it. If the registry is in a different scope, switch context using the scope selector before configuring the step.

</details>

<details>

<summary>The SLSA Generation step fails to resolve the artifact</summary>

Verify that the **Artifact Digest** is the exact `sha256` digest of the version you are attesting, not a tag. Open the artifact's version details page in Harness Artifacts and copy the digest from there.

</details>

## Next steps

* To understand SBOM generation and SLSA provenance concepts, go to [SBOM and software supply chain](https://developer.harness.io/artifact-registry/3.0/concepts/sbom-and-supply-chain.md).
* To view, score, and download SBOMs, go to [SBOM: view, score, and download](https://developer.harness.io/artifact-registry/3.0/security-and-compliance/sbom-view-score-and-download.md).
* To build and upload artifacts from CI pipelines, go to [Harness CI and Harness Artifacts](https://developer.harness.io/artifact-registry/3.0/platform-integrations/harness-ci.md).

{% @harness-feedback/feedback %}
