Skip to content

Commit de6d46e

Browse files
authored
Merge branch 'main' into main
2 parents c80f628 + f8ba59d commit de6d46e

File tree

6 files changed

+39
-24
lines changed

6 files changed

+39
-24
lines changed

.github/actions/build-distribution/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
run: ./dev-utils/make-distribution.sh
1515
shell: bash
1616

17-
- uses: actions/upload-artifact@v3
17+
- uses: actions/upload-artifact@v4
1818
with:
1919
name: build-distribution
2020
path: ./build/

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- uses: ./.github/actions/packages
2929
- name: generate build provenance
30-
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
30+
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
3131
with:
3232
subject-path: "${{ github.workspace }}/dist/*"
3333

@@ -47,12 +47,12 @@ jobs:
4747
path: dist
4848
- name: Upload pypi.org
4949
if: startsWith(github.ref, 'refs/tags')
50-
uses: pypa/gh-action-pypi-publish@8a08d616893759ef8e1aa1f2785787c0b97e20d6
50+
uses: pypa/gh-action-pypi-publish@0ab0b79471669eb3a4d647e625009c62f9f3b241
5151
with:
5252
repository-url: https://upload.pypi.org/legacy/
5353
- name: Upload test.pypi.org
5454
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
55-
uses: pypa/gh-action-pypi-publish@8a08d616893759ef8e1aa1f2785787c0b97e20d6
55+
uses: pypa/gh-action-pypi-publish@0ab0b79471669eb3a4d647e625009c62f9f3b241
5656
with:
5757
repository-url: https://test.pypi.org/legacy/
5858

@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v4
6767
- uses: ./.github/actions/build-distribution
6868
- name: generate build provenance
69-
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
69+
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
7070
with:
7171
subject-path: "${{ github.workspace }}/build/dist/elastic-apm-python-lambda-layer.zip"
7272

@@ -79,7 +79,7 @@ jobs:
7979
runs-on: ubuntu-latest
8080
steps:
8181
- uses: actions/checkout@v4
82-
- uses: actions/download-artifact@v3
82+
- uses: actions/download-artifact@v4
8383
with:
8484
name: build-distribution
8585
path: ./build
@@ -128,7 +128,7 @@ jobs:
128128
username: ${{ secrets.ELASTIC_DOCKER_USERNAME }}
129129
password: ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
130130

131-
- uses: actions/download-artifact@v3
131+
- uses: actions/download-artifact@v4
132132
with:
133133
name: build-distribution
134134
path: ./build
@@ -158,7 +158,7 @@ jobs:
158158
AGENT_DIR=./build/dist/package/python
159159
160160
- name: generate build provenance (containers)
161-
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
161+
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
162162
with:
163163
subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
164164
subject-digest: ${{ steps.docker-push.outputs.digest }}

.github/workflows/run-matrix.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
LOCALSTACK_VOLUME_DIR: localstack_data
2929
- if: success() || failure()
3030
name: Upload JUnit Test Results
31-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3232
with:
33-
name: test-results
33+
name: test-results-${{ matrix.framework }}-${{ matrix.version }}
3434
path: "**/*-python-agent-junit.xml"
3535
- if: success() || failure()
3636
name: Upload Coverage Reports
37-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@v4
3838
with:
39-
name: coverage-reports
39+
name: coverage-reports-${{ matrix.framework }}-${{ matrix.version }}
4040
path: "**/.coverage*"
4141
include-hidden-files: true

.github/workflows/test-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
ENDOFFILE
3737
- if: success() || failure()
3838
name: Upload JUnit Test Results
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
41-
name: test-results
41+
name: test-results-docs
4242
path: "docs-python-agent-junit.xml"

.github/workflows/test.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,18 @@ jobs:
145145
run: .\scripts\run-tests.bat
146146
- if: success() || failure()
147147
name: Upload JUnit Test Results
148-
uses: actions/upload-artifact@v3
148+
uses: actions/upload-artifact@v4
149149
with:
150-
name: test-results
150+
name: test-results-${{ matrix.framework }}-${{ matrix.version }}-asyncio-${{ matrix.asyncio }}
151151
path: "**/*-python-agent-junit.xml"
152+
retention-days: 1
152153
- if: success() || failure()
153154
name: Upload Coverage Reports
154-
uses: actions/upload-artifact@v3
155+
uses: actions/upload-artifact@v4
155156
with:
156-
name: coverage-reports
157+
name: coverage-reports-${{ matrix.framework }}-${{ matrix.version }}-asyncio-${{ matrix.asyncio }}
157158
path: "**/.coverage*"
159+
retention-days: 1
158160
# This job is here to have a single status check that can be set as required.
159161
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds
160162
# If a run contains a series of jobs that need each other, a failure applies to all jobs in the dependency chain from the point of failure onwards.
@@ -197,9 +199,10 @@ jobs:
197199

198200
- run: python -Im pip install --upgrade coverage[toml]
199201

200-
- uses: actions/download-artifact@v3
202+
- uses: actions/download-artifact@v4
201203
with:
202-
name: coverage-reports
204+
pattern: coverage-reports-*
205+
merge-multiple: true
203206

204207
- name: Combine coverage & fail if it's <84%.
205208
run: |
@@ -217,6 +220,6 @@ jobs:
217220
with:
218221
name: html-coverage-report
219222
path: htmlcov
220-
- uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b
223+
- uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # 5.1.0
221224
with:
222-
name: coverage-reports
225+
name: coverage-reports-*

.github/workflows/updatecli.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20+
- name: Get token
21+
id: get_token
22+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
23+
with:
24+
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
25+
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
26+
permissions: >-
27+
{
28+
"contents": "write",
29+
"pull_requests": "write"
30+
}
31+
2032
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
2133
with:
2234
registry: ghcr.io
@@ -27,13 +39,13 @@ jobs:
2739
with:
2840
command: --experimental compose diff
2941
env:
30-
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}
42+
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
3143

3244
- uses: elastic/oblt-actions/updatecli/run@v1
3345
with:
3446
command: --experimental compose apply
3547
env:
36-
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}
48+
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
3749

3850
- if: failure()
3951
uses: elastic/oblt-actions/slack/send@v1

0 commit comments

Comments
 (0)