-
Notifications
You must be signed in to change notification settings - Fork 8
/
action.yml
37 lines (31 loc) · 976 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2024 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
name: 'Octo STS'
description: |
This action exchanges the workflow's identity token for a Github App token
from the Octo STS service, in accordance with the trust policy of the target
organization or repository.
inputs:
domain:
description: |
The domain of the Octo STS instance to use to federate.
default: octo-sts.dev
scope:
description: |
The org/repo of the repository to which to request access.
required: true
identity:
description: |
The name of the trust policy to load from the target repository. The trust policy
is loaded from https://github.com/{scope} from the file
.github/chainguard/{identity}.sts.yaml
required: true
outputs:
token:
description: |
The federated token to use for authentication.
value: ${{ steps.octo-sts.outputs.token }}
runs:
using: 'node20'
main: 'index.js'
post: 'post.js'