File tree Expand file tree Collapse file tree 5 files changed +207
-0
lines changed Expand file tree Collapse file tree 5 files changed +207
-0
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,23 @@ This action outputs Github Action workflows and jobs details to OTLP via gRPC.
14
14
15
15
** Optional** Additional header configuration to pass in as metadata to the gRPC connection.
16
16
17
+ ## ` repo-token `
18
+
19
+ ** Optional** Token to use to authorize access to private repositories. Typically the ` GITHUB_TOKEN ` secret, with ` checks:read ` access.
20
+
17
21
## Example usage
18
22
19
23
```
20
24
uses: codeboten/github-action-to-otlp@v1
21
25
with:
22
26
endpoint: 'grpc.otlpendpoint.io:443'
23
27
```
28
+
29
+ ## Example usage in a private repository
30
+
31
+ ```
32
+ uses: codeboten/github-action-to-otlp@v1
33
+ with:
34
+ endpoint: 'grpc.otlpendpoint.io:443'
35
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
36
+ ```
Original file line number Diff line number Diff line change 7
7
headers :
8
8
description : " Headers to configure gRPC metadata"
9
9
required : false
10
+ repo-token :
11
+ description : ' The GITHUB_TOKEN secret'
12
+ required : false
10
13
runs :
11
14
using : " docker"
12
15
image : " Dockerfile"
13
16
env :
14
17
OTEL_EXPORTER_OTLP_ENDPOINT : ${{ inputs.endpoint }}
15
18
OTEL_EXPORTER_OTLP_HEADERS : ${{ inputs.headers }}
19
+ GITHUB_TOKEN : ${{ inputs.repo-token }}
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ require (
10
10
go.opentelemetry.io/otel v1.0.0
11
11
go.opentelemetry.io/otel/sdk v1.0.0
12
12
go.opentelemetry.io/otel/trace v1.0.0
13
+ golang.org/x/oauth2 v0.0.0-20220630143837-2104d58473e0
13
14
)
You can’t perform that action at this time.
0 commit comments