Skip to content

Commit 575a1f7

Browse files
committed
Merge remote-tracking branch 'origin/main' into feature/oidc-secrets-apm-aws-lambda
* origin/main: Use keyless authentication for smoke tests (#496) build(deps): bump the github-actions group with 2 updates (#494)
2 parents 14e4c34 + 96fb75f commit 575a1f7

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
retention-days: 5
6262

6363
- name: generate build provenance (binaries)
64-
uses: actions/attest-build-provenance@534b352d658f90498fd148d231fdbf88f3886a3a # v1.3.1
64+
uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2
6565
with:
6666
subject-path: "${{ github.workspace }}/dist/*.*"
6767

@@ -71,13 +71,13 @@ jobs:
7171
run: .ci/get-docker-provenance.sh
7272

7373
- name: generate build provenance (containers x86_64)
74-
uses: actions/attest-build-provenance@534b352d658f90498fd148d231fdbf88f3886a3a # v1.3.1
74+
uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2
7575
with:
7676
subject-name: ${{ steps.image.outputs.name_1 }}
7777
subject-digest: ${{ steps.image.outputs.digest_1 }}
7878

7979
- name: generate build provenance (containers arm64)
80-
uses: actions/attest-build-provenance@534b352d658f90498fd148d231fdbf88f3886a3a # v1.3.1
80+
uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2
8181
with:
8282
subject-name: ${{ steps.image.outputs.name_2 }}
8383
subject-digest: ${{ steps.image.outputs.digest_2 }}
@@ -89,7 +89,7 @@ jobs:
8989
VERSION: ${{ github.ref_name }}
9090

9191
- if: ${{ success() }}
92-
uses: elastic/oblt-actions/slack/[email protected].2
92+
uses: elastic/oblt-actions/slack/[email protected].3
9393
with:
9494
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
9595
channel-id: "#apm-aws-lambda"
@@ -98,7 +98,7 @@ jobs:
9898
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)
9999
100100
- if: ${{ failure() }}
101-
uses: elastic/oblt-actions/slack/[email protected].2
101+
uses: elastic/oblt-actions/slack/[email protected].3
102102
with:
103103
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
104104
channel-id: "#apm-aws-lambda"

.github/workflows/smoke-tests.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency: ${{ github.workflow }}
1414

1515
permissions:
1616
contents: read
17+
id-token: write
1718

1819
jobs:
1920
test:
@@ -30,9 +31,6 @@ jobs:
3031
TF_VAR_REPO: "${{ github.repository }}"
3132
SMOKETEST_VERSIONS: "${{ inputs.smoketest_versions || 'latest' }}"
3233
SKIP_DESTROY: 0
33-
# TODO: replace with keyless (likely AWS)
34-
AWS_ACCESS_KEY_ID: ${{ secrets.OBSERVABILITY_AWS_ACCESS_KEY_ID }}
35-
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBSERVABILITY_AWS_SECRET_ACCESS_KEY }}
3634
permissions:
3735
contents: read
3836
id-token: write
@@ -45,22 +43,19 @@ jobs:
4543
- uses: hashicorp/setup-terraform@v3
4644
with:
4745
terraform_version: 1.2.3
48-
49-
- uses: elastic/oblt-actions/google/auth@v1
50-
46+
- uses: elastic/oblt-actions/aws/auth@v1
5147
- uses: google-github-actions/get-secretmanager-secrets@dc4a1392bad0fd60aee00bb2097e30ef07a1caae # v2.1.3
5248
with:
5349
export_to_environment: true
5450
secrets: |-
5551
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-pro-api-key
56-
5752
- run: make smoketest/run TEST_DIR=./tf
5853
- if: always()
5954
name: Tear down
6055
run: make smoketest/all/cleanup TEST_DIR=./tf
6156

6257
- if: always()
63-
uses: elastic/oblt-actions/slack/[email protected].2
58+
uses: elastic/oblt-actions/slack/[email protected].3
6459
with:
6560
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
6661
channel-id: "#apm-aws-lambda"

tf/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ locals {
108108

109109
resource "aws_lambda_layer_version" "lambda_layer" {
110110
filename = "../dist/${local.zip_files[0]}"
111-
layer_name = "lambda_layer_name"
111+
layer_name = "apm-aws-lambda-smoke-testing-lambda_layer_name"
112112

113113
description = "AWS Lambda Extension Layer for Elastic APM - smoke testing"
114114
compatible_runtimes = ["nodejs16.x"]

0 commit comments

Comments
 (0)