Skip to content

Commit

Permalink
Moving git access token to 1pass
Browse files Browse the repository at this point in the history
RISDEV-3972
  • Loading branch information
Nadav-B committed Nov 26, 2024
1 parent c063145 commit 0330809
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions migration_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
The following job is importing the minimally required data (refdata and juris tables)

To be able to pull the `ris-data-migration` image, log in to the GitHub Package Repository using your username and a
credential
token stored in 1Password (1PW):
credential token stored in 1Password (1PW):

If you don't have a personal access token, read here on how to
generate [one](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic).

```shell
export CR_PAT=ghp_... # Replace with your personal access token
export CR_PAT=$(op read op://Employee/CR_PAT/password)
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin # Replace USERNAME with your GitHub username
```

The following step requires an OTC access token, read here for
more [info](https://platform-docs.prod.ds4g.net/user-docs/how-to-guides/access-obs-via-aws-sdk/#step-2-obtain-access_key-credentials).

To connect to your S3 bucket, ensure your AWS credentials are stored in 1Password, and then set the following
environment variables in your shell:

Expand Down

0 comments on commit 0330809

Please sign in to comment.