Skip to content

Commit 351a509

Browse files
authored
Merge pull request diggerhq#801 from diggerhq/docs/eesetup
Docs: add ee setup guide
2 parents 2152e71 + c5801b3 commit 351a509

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

docs/ee/ee-setup.mdx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: "Setting up Digger EE"
3+
---
4+
5+
## Prerequesites
6+
- Digger CE configured
7+
- Automatic access to Actions via Github Connect enabled in Github Enterprise Server - [github docs](https://docs.github.com/en/enterprise-server@3.11/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect)
8+
9+
## Get a new Digger token
10+
- Go to [cloud.digger.dev](https://cloud.digger.dev)
11+
- Go to API tokens in the sidebar
12+
- Press "Generate Token"
13+
- Copy the value; save securely (you will need it later)
14+
15+
## Update your workflow file to use Digger EE
16+
- point `uses` to `diggerhq/digger-ee@v0.2.6-ee` (use relevant version)
17+
- set your Digger token as `DIGGER_TOKEN`
18+
19+
```
20+
name: Digger Plan
21+
22+
on:
23+
pull_request:
24+
branches: [ "main" ]
25+
types: [ opened, synchronize ]
26+
issue_comment:
27+
types: [created]
28+
workflow_dispatch:
29+
30+
31+
jobs:
32+
plan:
33+
runs-on: ubuntu-latest
34+
permissions:
35+
contents: write # required to merge PRs
36+
id-token: write # required for workload-identity-federation
37+
pull-requests: write # required to post PR comments
38+
statuses: write # required to validate combined PR status
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
# Unlike GCP; the role assumption is handled inline
43+
- uses: actions/checkout@v4
44+
- name: digger run
45+
uses: diggerhq/digger-ee@v0.2.6-ee # HERE
46+
with:
47+
setup-aws: true
48+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
49+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
50+
aws-region: us-east-1
51+
env:
52+
GITHUB_CONTEXT: ${{ toJson(github) }}
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
DIGGER_TOKEN: ${{ secrets.GITHUB_TOKEN }} # HERE
55+
```

docs/mint.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"pages": [
5252
"guides/multiacc-aws"
5353
]
54-
},
54+
},
5555
{
5656
"group": "Configuration",
5757
"pages": [
@@ -69,6 +69,12 @@
6969
"configuration/terragrunt-project-generation"
7070
]
7171
},
72+
{
73+
"group": "Digger Enterprise",
74+
"pages": [
75+
"ee/ee-setup"
76+
]
77+
},
7278
{
7379
"group": "Features",
7480
"pages": [

0 commit comments

Comments
 (0)