Skip to content

Commit 48ca1c9

Browse files
Merge branch 'main' into main
2 parents e57e771 + d9194d9 commit 48ca1c9

File tree

103 files changed

+8265
-8602
lines changed

Some content is hidden

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

103 files changed

+8265
-8602
lines changed

.github/lychee.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
include-fragments = true
2+
3+
accept = ["200..=299", "429"]
4+
5+
exclude = [
6+
"^http(s)?://localhost",
7+
"^http(s)?://example.com",
8+
"https://docs.aws.amazon.com",
9+
"https://console.aws.amazon.com"
10+
]
11+
12+
# better to be safe and avoid failures
13+
max-retries = 6

.github/workflows/check-links.yaml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,51 @@
1-
name: "Link Check"
1+
name: check-links
22
on:
33
push:
44
branches: [main]
55
pull_request:
66

77
concurrency:
8-
group: ${{ github.workflow }}-${{ github.head_ref }}
8+
group: ${{ github.workflow }}-${{ github.ref_name }}
9+
cancel-in-progress: true
10+
11+
permissions: read-all
12+
913
jobs:
1014
changedfiles:
1115
name: changed files
1216
runs-on: ubuntu-latest
1317
env:
1418
PR_HEAD: ${{ github.event.pull_request.head.sha }}
1519
outputs:
16-
md: ${{ steps.changes.outputs.md }}
20+
files: ${{ steps.changes.outputs.files }}
1721
steps:
1822
- name: Checkout Repo
19-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2024
with:
2125
fetch-depth: 0
2226
- name: Get changed files
2327
id: changes
2428
run: |
25-
echo "md=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep .md$ | xargs)" >> $GITHUB_OUTPUT
29+
files=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep .md$ | xargs)
30+
31+
if [ -z "$files" ] && git diff --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep -q "package.json"; then
32+
files="**/*.md"
33+
fi
2634
35+
echo "files=$files" >> $GITHUB_OUTPUT
2736
check-links:
2837
runs-on: ubuntu-latest
2938
needs: changedfiles
30-
if: ${{needs.changedfiles.outputs.md}}
39+
if: ${{needs.changedfiles.outputs.files}}
3140
steps:
3241
- name: Checkout Repo
33-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
42+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3443
with:
3544
fetch-depth: 0
3645

37-
- name: Run markdown-link-check
38-
run: |
39-
npx --no -- markdown-link-check \
40-
--verbose \
41-
--config .github/workflows/check_links_config.json \
42-
${{needs.changedfiles.outputs.md}} \
43-
|| { echo "Check that anchor links are lowercase"; exit 1; }
46+
- name: Link Checker
47+
id: lychee
48+
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332
49+
with:
50+
args: "--verbose --no-progress ${{needs.changedfiles.outputs.files}} --config .github/lychee.toml"
51+
failIfEmpty: false

.github/workflows/check_links_config.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/ci-collector.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ on:
1414
branches:
1515
- main
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
test:
1922
runs-on: ubuntu-latest
2023
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-go@v5
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2326
with:
24-
go-version: '~1.21.9'
25-
- uses: actions/cache@v4
27+
go-version-file: collector/go.mod
28+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
2629
with:
2730
path: ~/go/pkg/mod
2831
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -41,11 +44,11 @@ jobs:
4144
matrix:
4245
architecture: [ amd64, arm64 ]
4346
steps:
44-
- uses: actions/checkout@v4
45-
- uses: actions/setup-go@v5
47+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4649
with:
47-
go-version: '~1.21.9'
48-
- uses: actions/cache@v4
50+
go-version-file: collector/go.mod
51+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4952
with:
5053
path: ~/go/pkg/mod
5154
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.github/workflows/ci-java.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,23 @@ on:
1515
- main
1616

1717
permissions:
18-
pull-requests: write
18+
contents: read
1919

2020
jobs:
2121
build:
22+
permissions:
23+
pull-requests: write
2224
runs-on: ubuntu-latest
2325
steps:
24-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2527

26-
- uses: actions/setup-java@v4
28+
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2729
with:
2830
distribution: corretto
2931
java-version: 17
3032

3133
- name: Setup Gradle
32-
uses: gradle/actions/setup-gradle@v4
34+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
3335
with:
3436
add-job-summary-as-pr-comment: on-failure # Valid values are 'never' (default), 'always', and 'on-failure'
3537

.github/workflows/ci-nodejs.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ on:
1414
branches:
1515
- main
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
build:
1922
runs-on: ubuntu-latest
2023
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-node@v4
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2326
with:
2427
node-version: 18
25-
- uses: actions/cache@v4
28+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
2629
with:
2730
path: ~/.npm
2831
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -34,3 +37,6 @@ jobs:
3437
working-directory: nodejs
3538
- run: npm test
3639
working-directory: nodejs
40+
- name: Build AWS SDK Sample
41+
run: npm run build
42+
working-directory: nodejs/sample-apps/aws-sdk

.github/workflows/ci-python.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ env:
2020
# https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/.github/workflows/test.yml#L9
2121
CORE_REPO_SHA: v1.19.0
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
build:
2528
runs-on: ubuntu-latest
@@ -28,13 +31,13 @@ jobs:
2831
matrix:
2932
# If you add a python version here, please make sure that the collector/Makefile publish and publish-layer targets
3033
# get updated as well
31-
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
34+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
3235

3336
steps:
3437
- name: Checkout this repo
35-
uses: actions/checkout@v4
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3639
- name: Setup Python for OTel Python SDK
37-
uses: actions/setup-python@v5
40+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3841
with:
3942
python-version: ${{ matrix.python }}
4043
- name: Install tox testing package
@@ -43,7 +46,7 @@ jobs:
4346
pip install tox
4447
tox
4548
- name: Set up Go for ADOT Collector
46-
uses: actions/setup-go@v5
49+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4750
with:
4851
go-version: '^1.20.8'
4952
- name: Build Python Layer which includes ADOT Collector

.github/workflows/ci-shellcheck.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ name: "Continuous Build (shellcheck)"
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
shellcheck:
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1013

1114
- name: Install shell check
1215
run: sudo apt update && sudo apt install --assume-yes shellcheck

.github/workflows/ci-terraform.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ on:
1414
branches:
1515
- main
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
check-terraform-syntax:
1922
runs-on: ubuntu-latest
2023
steps:
21-
- uses: actions/checkout@v4
22-
- uses: hashicorp/setup-terraform@v3
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
2326
- run: terraform fmt -check -recursive

.github/workflows/close-stale.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ on:
44
- cron: "40 3 * * *" # Run daily at 3:40 AM
55

66
permissions:
7-
issues: write
8-
pull-requests: write
7+
contents: read
98

109
jobs:
1110
stale:
11+
permissions:
12+
issues: write
13+
pull-requests: write
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: actions/stale@v9
16+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1517
with:
1618
repo-token: ${{ secrets.GITHUB_TOKEN }}
1719
stale-issue-message: 'This issue was marked stale. It will be closed in 30 days without additional activity.'

0 commit comments

Comments
 (0)