Skip to content

Commit 55bf6a7

Browse files
committed
Merge remote-tracking branch 'origin/main' into instrumentation-supplementary-guidelines
Signed-off-by: cijothomas <cijo.thomas@gmail.com> # Conflicts: # CHANGELOG.md
2 parents b1c3e88 + 5d015c5 commit 55bf6a7

101 files changed

Lines changed: 9750 additions & 882 deletions

File tree

Some content is hidden

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

.github/renovate.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
"groupName": "github-actions deps"
2222
}
2323
],
24+
lockFileMaintenance: {
25+
enabled: true,
26+
schedule: ["* 0-7 * * 2"], // weekly, before 8am on Tuesday
27+
},
2428
"labels": [
2529
"dependencies"
2630
]

.github/scripts/triage-helper/Pipfile.lock

Lines changed: 331 additions & 272 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/checks.yaml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: check out code
18-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
18+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19+
with:
20+
persist-credentials: false
1921

2022
- name: install dependencies
21-
run: npm install
23+
run: npm ci --ignore-scripts
2224

2325
- name: run markdownlint
2426
run: make markdownlint
@@ -27,9 +29,11 @@ jobs:
2729
runs-on: ubuntu-latest
2830
steps:
2931
- name: check out code
30-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
33+
with:
34+
persist-credentials: false
3135

32-
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
36+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3337

3438
- name: install yamllint
3539
run: make install-yamllint
@@ -41,10 +45,12 @@ jobs:
4145
runs-on: ubuntu-latest
4246
steps:
4347
- name: check out code
44-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
48+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
49+
with:
50+
persist-credentials: false
4551

4652
- name: install dependencies
47-
run: npm install
53+
run: npm ci --ignore-scripts
4854

4955
- name: run markdown-link-check
5056
run: make markdown-link-check
@@ -56,10 +62,12 @@ jobs:
5662
runs-on: ubuntu-latest
5763
steps:
5864
- name: check out code
59-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
65+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
66+
with:
67+
persist-credentials: false
6068

6169
- name: install dependencies
62-
run: npm install
70+
run: npm ci --ignore-scripts
6371

6472
- name: run markdown-toc
6573
run: make markdown-toc-check
@@ -68,7 +76,9 @@ jobs:
6876
runs-on: ubuntu-latest
6977
steps:
7078
- name: check out code
71-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
79+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
80+
with:
81+
persist-credentials: false
7282

7383
- name: run compliance-matrix
7484
run: make compliance-matrix
@@ -80,9 +90,11 @@ jobs:
8090
runs-on: ubuntu-latest
8191
steps:
8292
- name: check out code
83-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
93+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
94+
with:
95+
persist-credentials: false
8496

85-
- uses: streetsidesoftware/cspell-action@de2a73e963e7443969755b648a1008f77033c5b2 # v8.4.0
97+
- uses: streetsidesoftware/cspell-action@e0668cf020899e887ee8ad4d173c31738a79eae8 # v9.0.1
8698
with:
8799
incremental_files_only: false # check all files, not just changed files
88100
config: .cspell.yaml
@@ -93,10 +105,12 @@ jobs:
93105
runs-on: ubuntu-latest
94106
steps:
95107
- name: check out code
96-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
108+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
109+
with:
110+
persist-credentials: false
97111

98112
- name: install dependencies
99-
run: npm install
113+
run: npm ci --ignore-scripts
100114

101115
- name: run textlint
102116
run: make textlint format=github

.github/workflows/fossa.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ jobs:
1212
fossa:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
15+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16+
with:
17+
persist-credentials: false
1618

17-
- uses: fossas/fossa-action@ff70fe9fe17cbd2040648f1c45e8ec4e4884dcf3 # v1.9.0
19+
- uses: fossas/fossa-action@29693cc50323968e039056be419b32989fc5880c # v2.0.0
1820
with:
1921
api-key: ${{secrets.FOSSA_API_KEY}}
2022
team: OpenTelemetry

.github/workflows/ossf-scorecard.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,12 @@ on:
88
- cron: "2 22 * * 3" # once a week
99
workflow_dispatch:
1010

11-
permissions: read-all
11+
permissions: {}
1212

1313
jobs:
1414
analysis:
15-
runs-on: ubuntu-latest
1615
permissions:
17-
# Needed for Code scanning upload
18-
security-events: write
19-
# Needed for GitHub OIDC token if publish_results is true
20-
id-token: write
21-
steps:
22-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
23-
with:
24-
persist-credentials: false
25-
26-
- uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
27-
with:
28-
results_file: results.sarif
29-
results_format: sarif
30-
publish_results: true
31-
32-
# Upload the results as artifacts (optional). Commenting out will disable
33-
# uploads of run results in SARIF format to the repository Actions tab.
34-
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
35-
- name: "Upload artifact"
36-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
37-
with:
38-
name: SARIF file
39-
path: results.sarif
40-
retention-days: 5
41-
42-
# Upload the results to GitHub's code scanning dashboard (optional).
43-
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
44-
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
46-
with:
47-
sarif_file: results.sarif
16+
contents: read # for actions/checkout
17+
id-token: write # for Scorecard to publish results
18+
security-events: write # for the SARIF upload to code scanning
19+
uses: open-telemetry/shared-workflows/.github/workflows/scorecard.yml@d9b812f9924a121c6a8276ea2f9e6f5b622cdd4d # v0.10.0
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Reopen issue on command"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
reopen:
11+
# Only run on issues (not PRs), on closed issues, when the comment is exactly "/reopen",
12+
# and only if the commenter is the issue author or a member/collaborator/owner/contributor.
13+
if: >
14+
!github.event.issue.pull_request &&
15+
github.event.issue.state == 'closed' &&
16+
startsWith(github.event.comment.body, '/reopen') &&
17+
(
18+
github.event.comment.user.login == github.event.issue.user.login ||
19+
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR"]'), github.event.comment.author_association)
20+
)
21+
permissions:
22+
issues: write # required to reopen the issue
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Reopen issue
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
REPO: ${{ github.repository }}
29+
ISSUE_NUMBER: ${{ github.event.issue.number }}
30+
COMMENT_BODY: ${{ github.event.comment.body }}
31+
run: |
32+
# Require the comment to be exactly "/reopen" (ignoring trailing whitespace)
33+
if [[ ! "$COMMENT_BODY" =~ ^/reopen[[:space:]]*$ ]]; then
34+
echo "Comment is not an exact /reopen command; skipping."
35+
exit 0
36+
fi
37+
gh issue reopen "$ISSUE_NUMBER" --repo "$REPO"

.github/workflows/stale-pr.yaml

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

.github/workflows/stale.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Close stale pull requests and issues"
2+
on:
3+
schedule:
4+
- cron: "12 3 * * *" # arbitrary time not to DDOS GitHub
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
stale:
11+
permissions:
12+
pull-requests: write # required for marking and closing stale PRs
13+
issues: write # required for marking and closing stale issues
14+
actions: write # required for the stale action to manage (reset) its state cache
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
stale-pr-message: 'This PR was marked stale. It will be closed in 14 days without additional activity.'
21+
close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.'
22+
exempt-pr-labels: 'release:after-ga'
23+
stale-issue-message: 'This issue was marked stale due to lack of activity. Please leave a comment if you would like to keep this issue open.'
24+
close-issue-message: |
25+
Closed due to inactivity.
26+
27+
We appreciate your input, and if this issue is still relevant,
28+
please reopen it, or comment "/reopen" and we'll do it for you.
29+
30+
Thank you for your contribution!
31+
# applies only to pull requests
32+
days-before-pr-stale: 14
33+
days-before-pr-close: 14
34+
# applies only to issues
35+
days-before-issue-stale: 365
36+
days-before-issue-close: 14
37+
# TODO: remove or lower once we process through old issues backlog
38+
# defaults to 30 operations per run, empirically ~12 issues or PRs.
39+
operations-per-run: 100

.github/workflows/triage-followup.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
run:
1818
working-directory: ./.github/scripts/triage-helper
1919
steps:
20-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
21-
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
with:
22+
persist-credentials: false
23+
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2224
with:
2325
python-version: 3.14
2426
- name: Install pipenv

.github/workflows/verify-changelog.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ jobs:
2929
3030
steps:
3131
- name: Checkout repository
32-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3333
with:
34+
persist-credentials: false
3435
fetch-depth: 0
3536

3637
- name: Verify CHANGELOG updated
38+
env:
39+
BASE_REF: ${{ github.base_ref }}
3740
run: |
3841
echo "Checking for CHANGELOG modifications..."
39-
if git diff --name-only --merge-base origin/${{ github.base_ref }} | grep -q 'CHANGELOG'; then
42+
if git diff --name-only --merge-base "origin/${BASE_REF}" | grep -q 'CHANGELOG'; then
4043
echo "CHANGELOG updated — OK"
4144
else
4245
echo "::error::No CHANGELOG file was updated in this PR."

0 commit comments

Comments
 (0)