Skip to content

Commit 0b5b81e

Browse files
authored
Merge branch 'main' into georgewallace-patch-1
2 parents c78f8a6 + 7c32cc6 commit 0b5b81e

File tree

313 files changed

+9998
-4358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+9998
-4358
lines changed

.github/actions/aws-auth/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ runs:
3737
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
3838
f.write(f"result=arn:aws:iam::{os.environ["AWS_ACCOUNT_ID"]}:role/{prefix}{hash}")
3939
- name: Configure AWS Credentials
40-
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
40+
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
4141
with:
4242
role-to-assume: ${{ steps.role_arn.outputs.result }}
4343
aws-region: ${{ inputs.aws_region }}

.github/actions/bootstrap/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
run: |
2525
git config --global init.defaultBranch main
2626
27-
- uses: actions/setup-dotnet@v4
27+
- uses: actions/setup-dotnet@v5
2828
with:
2929
global-json-file: global.json
3030

@@ -38,7 +38,7 @@ runs:
3838
echo "full-version=${REPO_VERSION}" >> $GITHUB_OUTPUT
3939
echo "major-version=$(echo ${REPO_VERSION} | cut -d"." -f1)" >> $GITHUB_OUTPUT
4040
41-
- uses: actions/setup-node@v4
41+
- uses: actions/setup-node@v5
4242
with:
4343
cache: npm
4444
cache-dependency-path: src/Elastic.Documentation.Site/package-lock.json

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ updates:
1212
- package-ecosystem: npm
1313
directories:
1414
- '**/*'
15+
cooldown:
16+
default-days: 14
1517
schedule:
1618
interval: 'weekly'
1719
day: 'monday'

updatecli/updatecli.d/versions.yml renamed to .github/updatecli/updatecli.d/versions.yml

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,14 @@ actions:
2525
title: '[Automation] Bump product version numbers'
2626

2727
sources:
28-
# TODO Automate only for patch releases
29-
# latest-stack-version:
30-
# name: Get latest stack version
31-
# kind: githubrelease
32-
# transformers:
33-
# - trimprefix: v
34-
# spec:
35-
# owner: elastic
36-
# repository: elasticsearch
37-
# token: '{{ requiredEnv "GITHUB_TOKEN" }}'
38-
# username: '{{ requiredEnv "GITHUB_ACTOR" }}'
39-
# versionfilter:
40-
# kind: regex
41-
# pattern: "v9.(\\d*).(\\d*)$"
28+
latest-stack-version:
29+
name: Get latest stack version
30+
kind: json
31+
spec:
32+
files:
33+
- https://artifacts.elastic.co/releases/stack.json
34+
engine: dasel/v2
35+
key: "releases.last().version"
4236

4337
latest-edot-android-version:
4438
name: Get latest release version for the apm-agent-android
@@ -64,8 +58,8 @@ sources:
6458
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
6559
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
6660
versionfilter:
67-
kind: regex
68-
pattern: "v9.(\\d*).(\\d*)$"
61+
kind: semver
62+
pattern: "^9.0.0"
6963

7064
latest-edot-dotnet-version:
7165
name: Get latest release version for the elastic-otel-dotnet
@@ -292,15 +286,15 @@ sources:
292286
pattern: "^@elastic/apm-rum@(\\d*).(\\d*).(\\d*)$"
293287

294288
targets:
295-
# update-docs-docset-stack:
296-
# name: 'Update config/versions.yml stack {{ source "latest-stack-version" }}'
297-
# scmid: githubConfig
298-
# sourceid: latest-stack-version
299-
# kind: file
300-
# spec:
301-
# file: config/versions.yml
302-
# matchpattern: '(stack: &stack\s+base: [\d\.]+\s+current:)\s+(.+)'
303-
# replacepattern: '$1 {{ source "latest-stack-version" }}'
289+
update-docs-docset-stack:
290+
name: 'Update config/versions.yml stack {{ source "latest-stack-version" }}'
291+
scmid: githubConfig
292+
sourceid: latest-stack-version
293+
kind: file
294+
spec:
295+
file: config/versions.yml
296+
matchpattern: '(stack: &stack\s+base: [\d\.]+\s+current:)\s+(.+)'
297+
replacepattern: '$1 {{ source "latest-stack-version" }}'
304298

305299
update-docs-docset-android:
306300
name: 'Update config/versions.yml edot-android {{ source "latest-edot-android-version" }}'
@@ -318,7 +312,7 @@ targets:
318312
kind: yaml
319313
spec:
320314
file: config/versions.yml
321-
key: versioning_systems.edot_collector.current
315+
key: $.versioning_systems.edot_collector.current
322316

323317
update-docs-docset-dotnet:
324318
name: 'Update config/versions.yml edot-dotnet {{ source "latest-edot-dotnet-version" }}'
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Auto-add triage label
3+
4+
on:
5+
issues:
6+
types:
7+
- opened
8+
9+
permissions:
10+
contents: read
11+
issues: write
12+
13+
jobs:
14+
add-triage-label:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Add needs triage label
18+
uses: actions/github-script@v7
19+
with:
20+
script: |
21+
github.rest.issues.addLabels({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
issue_number: context.issue.number,
25+
labels: ['needs triage']
26+
})

.github/workflows/build-api-lambda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
BINARY_PATH: .artifacts/Elastic.Documentation.Api.Lambda/release_linux-x64/bootstrap
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525
with:
2626
ref: ${{ inputs.ref }}
2727
- name: Amazon Linux 2023 build

.github/workflows/build-link-index-updater-lambda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
env:
1919
BINARY_PATH: .artifacts/docs-lambda-index-publisher/release_linux-x64/bootstrap
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
with:
2323
ref: ${{ inputs.ref }}
2424
- name: Amazon Linux 2023 build

.github/workflows/ci.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
validate-assembler:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424

2525
- name: Bootstrap Action Workspace
2626
id: bootstrap
@@ -44,9 +44,9 @@ jobs:
4444
run:
4545
working-directory: src/Elastic.Documentation.Site
4646
steps:
47-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@v5
4848

49-
- uses: actions/setup-node@v4
49+
- uses: actions/setup-node@v5
5050
with:
5151
cache: npm
5252
cache-dependency-path: src/Elastic.Documentation.Site/package-lock.json
@@ -55,6 +55,14 @@ jobs:
5555
- name: Install dependencies
5656
run: npm ci
5757

58+
## https://semgrep.dev/blog/2025/security-advisory-npm-packages-using-secret-scanning-tools-to-steal-credentials/
59+
- name: Check shai-hulud attack
60+
run: |
61+
if find . -type f -name "*.js" -exec sha256sum {} \; | grep -q "46faab8ab153fae6e80e7cca38eab363075bb524edd79e42269217a083628f09"; then
62+
echo "Vulnerable version of serialize-javascript found in:"
63+
find . -type f -name "*.js" -exec sha256sum {} \; | grep "46faab8ab153fae6e80e7cca38eab363075bb524edd79e42269217a083628f09" | awk '{print $2}'
64+
exit 1
65+
fi
5866
- name: Lint
5967
run: npm run lint
6068

@@ -78,7 +86,7 @@ jobs:
7886
- macos-latest
7987
- windows-latest
8088
steps:
81-
- uses: actions/checkout@v4
89+
- uses: actions/checkout@v5
8290

8391
- name: Bootstrap Action Workspace
8492
id: bootstrap
@@ -94,19 +102,24 @@ jobs:
94102
run: dotnet run --project build -c release -- unit-test
95103

96104
- name: Publish AOT
105+
if: ${{ matrix.os != 'ubuntu-latest' }} # publish containers already validates AOT build
97106
run: dotnet run --project build -c release -- publishbinaries
107+
108+
- name: Publish Containers
109+
if: ${{ matrix.os == 'ubuntu-latest' }}
110+
env:
111+
DOCKER_NO_PUBLISH: true
112+
run: dotnet run --project build -c release -- publishcontainers
113+
114+
- name: Run Container
115+
if: ${{ matrix.os == 'ubuntu-latest' }}
116+
run: dotnet run --project build -c release -- runlocalcontainer
117+
98118

99119
integration:
100-
if: false
101-
runs-on: ubuntu-latest
120+
runs-on: docs-builder-latest-16
102121
steps:
103-
- uses: actions/checkout@v4
104-
105-
- name: Free Disk Space
106-
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
107-
with:
108-
tool-cache: false
109-
dotnet: true
122+
- uses: actions/checkout@v5
110123

111124
- name: Bootstrap Action Workspace
112125
id: bootstrap

.github/workflows/create-major-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
create-major-tag:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
- name: Get major version
2020
run: |
2121
MAJOR_VERSION=$(echo "${GITHUB_REF#refs/tags/}" | awk -F. '{print $1}')

0 commit comments

Comments
 (0)