Skip to content

Commit c3c7fad

Browse files
actions-bot-plgithub-actions[bot]
authored andcommitted
Deploy OpenTelemetry
1 parent c2ceeab commit c3c7fad

File tree

9 files changed

+77
-20
lines changed

9 files changed

+77
-20
lines changed

.github/workflows/autoapprove.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
pull-requests: write
14+
actions: read
1415
steps:
15-
- uses: plengauer/opentelemetry-bash/actions/instrument/[email protected]
16+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1617
with:
17-
secrets_to_redact: '${{ toJSON(secrets) }}'
18+
secrets_to_redact: '["${{ github.token }}","${{ secrets.ACTIONS_GITHUB_TOKEN }}","${{ secrets.GITHUB_TOKEN }}"]'
1819
env:
1920
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
2021
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'

.github/workflows/autorerun.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ jobs:
99
rerun:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: plengauer/opentelemetry-bash/actions/instrument/[email protected]
12+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1313
with:
14-
secrets_to_redact: '${{ toJSON(secrets) }}'
14+
secrets_to_redact: '["${{ github.token }}","${{ secrets.ACTIONS_GITHUB_TOKEN }}"]'
1515
env:
1616
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
1717
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'
1818
- uses: plengauer/[email protected]
1919
with:
2020
github_token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
21+
permissions:
22+
actions: read

.github/workflows/autoversion.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ jobs:
99
bump:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: plengauer/opentelemetry-bash/actions/instrument/[email protected]
12+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1313
with:
14-
secrets_to_redact: '${{ toJSON(secrets) }}'
14+
secrets_to_redact: '["${{ github.token }}","${{ secrets.ACTIONS_GITHUB_TOKEN }}","${{ secrets.OPENAI_API_TOKEN }}"]'
1515
env:
1616
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
1717
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'
1818
- uses: plengauer/[email protected]
1919
with:
2020
github_token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
2121
openai_token: ${{ secrets.OPENAI_API_TOKEN }}
22+
permissions:
23+
actions: read

.github/workflows/build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
run:
1111
working-directory: ./package
1212
steps:
13-
- uses: plengauer/opentelemetry-bash/actions/instrument/[email protected]
13+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1414
with:
15-
secrets_to_redact: '${{ toJSON(secrets) }}'
15+
secrets_to_redact: '["${{ github.token }}"]'
1616
env:
1717
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
1818
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'
@@ -24,3 +24,5 @@ jobs:
2424
with:
2525
name: package.deb
2626
path: package.deb
27+
permissions:
28+
actions: read

.github/workflows/deploy_observability.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@ jobs:
1212
concurrency:
1313
group: otel-deploy-job
1414
steps:
15-
- uses: plengauer/Thoth/actions/instrument/[email protected]
15+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
16+
env:
17+
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}
18+
OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}
19+
with:
20+
secrets_to_redact: '["${{ github.token }}","${{ secrets.ACTIONS_GITHUB_TOKEN }}","${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}","${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}"]'
21+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1622
env:
1723
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
1824
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'
1925
with:
2026
github_token: '${{ secrets.ACTIONS_GITHUB_TOKEN }}'
27+
permissions:
28+
actions: read

.github/workflows/observability.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ name: OpenTelemetry
22

33
on:
44
workflow_run:
5-
workflows: [ 'Renovate', 'Autoversion', 'Autoapprove', 'Autorerun', 'Build', 'Publish', 'Test', 'Test Branch' ]
5+
workflows: [Autoapprove, Autorerun, Autoversion, Build, Publish, Renovate, Test, Test Branch, Copilot coding agent]
66
types:
77
- completed
88

99
jobs:
1010
export:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: plengauer/opentelemetry-bash/actions/instrument/[email protected]
13+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1414
env:
1515
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
1616
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'
17+
container: ghcr.io/plengauer/opentelemetry-github-workflow-instrumentation-runner:v5.36.0
18+
permissions:
19+
actions: read

.github/workflows/publish_main.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write
17+
actions: read
1718
steps:
18-
- uses: plengauer/opentelemetry-bash/actions/instrument/[email protected]
19+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1920
with:
20-
secrets_to_redact: '${{ toJSON(secrets) }}'
21+
secrets_to_redact: '["${{ github.token }}","${{ secrets.ACTIONS_GITHUB_TOKEN }}"]'
2122
env:
2223
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
2324
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'

.github/workflows/renovate.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
renovate:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: plengauer/opentelemetry-bash/actions/instrument/[email protected]
15+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
1616
with:
17-
secrets_to_redact: '${{ toJSON(secrets) }}'
17+
secrets_to_redact: '["${{ github.token }}","${{ secrets.ACTIONS_GITHUB_TOKEN }}"]'
1818
env:
1919
OTEL_EXPORTER_OTLP_ENDPOINT: '${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}'
2020
OTEL_EXPORTER_OTLP_HEADERS: '${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}'
@@ -23,3 +23,5 @@ jobs:
2323
RENOVATE_REPOSITORIES: ${{ github.repository }}
2424
with:
2525
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
26+
permissions:
27+
actions: read

.github/workflows/test.yaml

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
matrix:
1515
mode: ['cache', 'proxy']
1616
steps:
17+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
18+
env:
19+
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}
20+
OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}
21+
with:
22+
secrets_to_redact: '["${{ github.token }}"]'
1723
- run: sudo apt-get update && sudo apt-get install -y debconf-utils
1824
- run: echo gitaptly gitaptly/MODE string ${{ matrix.mode }} | sudo debconf-set-selections
1925
- run: curl https://api.github.com/repos/plengauer/abom-http/releases/latest | jq -r '.assets[].browser_download_url' | xargs wget -O ./abomhttp.deb && sudo apt-get install ./abomhttp.deb
@@ -29,14 +35,21 @@ jobs:
2935
- run: sudo apt-get update --allow-insecure-repositories
3036
- run: sudo apt-get -y install --allow-unauthenticated auto-management
3137
- run: sudo apt-get -y remove gitaptly
32-
38+
permissions:
39+
actions: read
3340
test-token:
3441
needs: build
3542
runs-on: ubuntu-latest
3643
strategy:
3744
matrix:
3845
mode: ['cache', 'proxy']
3946
steps:
47+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
48+
env:
49+
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}
50+
OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}
51+
with:
52+
secrets_to_redact: '["${{ github.token }}","${{ secrets.GITHUB_TOKEN }}"]'
4053
- run: sudo apt-get update && sudo apt-get install -y debconf-utils
4154
- run: echo gitaptly gitaptly/MODE string ${{ matrix.mode }} | sudo debconf-set-selections
4255
- run: curl https://api.github.com/repos/plengauer/abom-http/releases/latest | jq -r '.assets[].browser_download_url' | xargs wget -O ./abomhttp.deb && sudo apt-get install ./abomhttp.deb
@@ -51,18 +64,25 @@ jobs:
5164
- run: sudo apt-get update --allow-insecure-repositories
5265
- run: sudo apt-get -y install --allow-unauthenticated auto-management
5366
- run: sudo apt-get -y remove gitaptly
54-
67+
permissions:
68+
actions: read
5569
test-observed:
5670
needs: build
5771
runs-on: ubuntu-latest
5872
strategy:
5973
matrix:
6074
mode: ['cache', 'proxy']
6175
steps:
76+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
77+
env:
78+
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}
79+
OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}
80+
with:
81+
secrets_to_redact: '["${{ github.token }}"]'
6282
- run: sudo apt-get update && sudo apt-get install -y debconf-utils
6383
- run: echo gitaptly gitaptly/MODE string ${{ matrix.mode }} | sudo debconf-set-selections
6484
- run: curl https://api.github.com/repos/plengauer/abom-http/releases/latest | jq -r '.assets[].browser_download_url' | xargs wget -O ./abomhttp.deb && sudo apt-get install ./abomhttp.deb
65-
- run: wget -O - https://raw.githubusercontent.com/plengauer/opentelemetry-bash/main/INSTALL.sh | sh -E
85+
- run: wget -O - https://raw.githubusercontent.com/plengauer/opentelemetry-github/main/INSTALL.sh | sh -E
6686
- uses: actions/[email protected]
6787
with:
6888
name: package.deb
@@ -71,14 +91,21 @@ jobs:
7191
- run: sudo apt-get update --allow-insecure-repositories
7292
- run: sudo apt-get -y install --allow-unauthenticated auto-management
7393
- run: sudo apt-get -y remove gitaptly
74-
94+
permissions:
95+
actions: read
7596
test-upgrade:
7697
needs: build
7798
runs-on: ubuntu-latest
7899
strategy:
79100
matrix:
80101
mode: ['cache', 'proxy']
81102
steps:
103+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
104+
env:
105+
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}
106+
OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}
107+
with:
108+
secrets_to_redact: '["${{ github.token }}"]'
82109
- run: sudo apt-get update && sudo apt-get install -y debconf-utils
83110
- run: echo gitaptly gitaptly/MODE string ${{ matrix.mode }} | sudo debconf-set-selections
84111
- run: curl https://api.github.com/repos/plengauer/abom-http/releases/latest | jq -r '.assets[].browser_download_url' | xargs wget -O ./abomhttp.deb && sudo apt-get install ./abomhttp.deb
@@ -97,9 +124,18 @@ jobs:
97124
- run: sudo apt-get update --allow-insecure-repositories
98125
- run: sudo apt-get -y install --allow-unauthenticated auto-management
99126
- run: sudo apt-get -y remove gitaptly
100-
127+
permissions:
128+
actions: read
101129
test-all:
102130
needs: [ test-clean-install, test-token, test-observed, test-upgrade ]
103131
runs-on: ubuntu-latest
104132
steps:
133+
- uses: plengauer/opentelemetry-github/actions/instrument/[email protected]
134+
env:
135+
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }}
136+
OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTEL_EXPORTER_OTLP_HEADERS }}
137+
with:
138+
secrets_to_redact: '["${{ github.token }}"]'
105139
- run: exit 0
140+
permissions:
141+
actions: read

0 commit comments

Comments
 (0)