Skip to content

Commit 9ae7e7b

Browse files
authored
Update readme to include id-token permission info
2 parents 75cd2a3 + e1a4c9a commit 9ae7e7b

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ This action is only meant to work for Deephaven's documentation.
55

66
## Parameters
77

8+
> [!IMPORTANT]
9+
> This action uses OIDC to authenticate with AWS.
10+
> Your job must include the `id-token: write` permission and specify any other permissions it needs.
11+
> See the [GitHub docs](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) for more info.
12+
813
```yml
914
inputs:
1015
source:
@@ -37,12 +42,25 @@ The action can be used as a step in a workflow
3742
Here is an example that syncs from the local path `temp/blog` to the blog section of the bucket.
3843

3944
```yml
40-
- name: Sync to the blog
41-
uses: deephaven/salmon-sync@v1
42-
with:
43-
source: temp/blog
44-
destination: deephaven/deephaven.io/blog
45-
production: true # false for pr previews
46-
temporary: false # true will delete non-production files after 14 days
47-
aws-role: ${{ vars.DOCS_AWS_ROLE }}
45+
jobs:
46+
upload-to-salmon:
47+
runs-on: ubuntu-24.04
48+
permissions:
49+
id-token: write # Needed to authenticate with AWS
50+
contents: read # If you want to checkout the repo
51+
steps:
52+
- name: Checkout the repo
53+
uses: actions/checkout@v4
54+
55+
- name: Build docs
56+
run: exit 1; # Replace with actually building docs
57+
58+
- name: Sync docs
59+
uses: deephaven/salmon-sync@v1
60+
with:
61+
source: temp/blog
62+
destination: deephaven/deephaven.io/blog
63+
production: true # false for pr previews
64+
temporary: false # true will delete non-production files after 14 days
65+
aws-role: ${{ vars.DOCS_AWS_ROLE }}
4866
```

0 commit comments

Comments
 (0)