# Configuring Go

This page explains how to configure the Go package manager to pull packages from the Seal artifact server based on your existing setup.

Make sure you have the access token for the server ready.

### Pull directly from the artifact server

The Go repository is saved in the `GOPROXY` environment variable.

Before building the project we must set:

```
GOPROXY="https://$PROJECT_ID:$TOKEN@go.sealsecurity.io,direct" go mod download
```

1. In the `$PROJECT_ID` put the name of your project. This value will later be used in the reporting to indicate which project pulled which vulnerable package.
2. In the `$TOKEN` we need to put the access token to the artifact server.

### Pull using JFrog's Artifactory

1. Go to JFrog's Artifactory configuration and create a new remote Go repository.
   1. In the Basic configuration, choose whatever Repository Key you like.
   2. Set `https://go.sealsecurity.io` as the URL.
   3. In the User Name field use `jfrog`.
   4. In the Password / Access Token field paste the token you created earlier.
2. Click the `Test` button. This will test whether the connection and authentication to the Seal artifact server is configured properly.
3. Save the new repository, and set it as the top priority remote repository in the virtual repository you're using.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealsecurity.io/fundamentals/artifact-server/configuring-the-package-manager/configuring-go.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
