Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
with:
# history is needed to run git cherry-pick below
fetch-depth: 0
# zizmor: ignore[artipacked] Credentials are required by the branch push below.
persist-credentials: true

- name: Use CLA approved github bot
run: .github/scripts/use-cla-approved-bot.sh
Expand All @@ -34,11 +36,12 @@ jobs:
with:
client-id: ${{ vars.OTELBOT_CLIENT_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
permission-pull-requests: write

- name: Create pull request
env:
NUMBER: ${{ github.event.inputs.number }}
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
# pull requests from secrets.GITHUB_TOKEN do not run workflows
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
run: |
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
Expand All @@ -49,6 +52,7 @@ jobs:
git checkout -b $branch
git cherry-pick $commit
git push --set-upstream origin $branch
gh pr create --title "[$GITHUB_REF_NAME] $title" \
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
--base $GITHUB_REF_NAME
gh pr create \
--title "[$GITHUB_REF_NAME] $title" \
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
--base $GITHUB_REF_NAME
1 change: 1 addition & 0 deletions .github/workflows/benchmark-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ matrix.tag-version }}
persist-credentials: false

- id: setup-java
name: Set up Java for build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- id: setup-java
name: Set up Java for build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Java
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-tracecontext-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Login to GitHub package registry
uses: docker/login-action@371161bbe7024a29a25c5e19bfcbc0804fe9ad2c # v4.5.2
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
jmh-based-tests: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- id: setup-java-test
name: Set up Java ${{ matrix.test-java-version }} for tests
Expand All @@ -58,15 +60,19 @@ jobs:
java-version: 21

- name: Set up gradle
# zizmor: ignore[cache-poisoning] This tests release branches but does not
# publish release artifacts.
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
- name: Build
shell: bash
run: >
./gradlew build
${{ matrix.coverage && 'jacocoTestReport' || '' }}
-PtestJavaVersion=${{ matrix.test-java-version }}
"-Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }}"
"-Porg.gradle.java.installations.paths=${TEST_JAVA_PATH}"
"-Porg.gradle.java.installations.auto-download=false"
env:
TEST_JAVA_PATH: ${{ steps.setup-java-test.outputs.path }}
# JMH-based tests run only if this environment variable is set to true
RUN_JMH_BASED_TESTS: ${{ matrix.jmh-based-tests }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
Expand Down Expand Up @@ -116,6 +122,8 @@ jobs:
- 25 # renovate(graal-java-version)
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: graalvm/setup-graalvm@0def53c0fd8534bc13416c9469f5be45265824fd # v1.6.3
with:
java-version: ${{ matrix.test-graal-version }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Java 21
if: matrix.language == 'java'
Expand All @@ -41,6 +43,8 @@ jobs:
java-version: 21

- name: Set up gradle
# zizmor: ignore[cache-poisoning] This workflow analyzes release branches
# but does not build or publish release artifacts.
if: matrix.language == 'java'
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/detect-api-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
# pull_request_target is used instead of pull_request so that the workflow has write access
# (to post comments and apply labels) even when triggered by fork PRs.
#
# SECURITY: this workflow must never checkout or execute any code from the PR branch.
# Doing so would allow malicious PRs to exfiltrate secrets. All we use from the PR
# is github.event.pull_request.number (an integer), which is safe.
pull_request_target:
# zizmor: ignore[dangerous-triggers] Required to label and comment on fork PRs;
# no PR code is checked out, and the PR number and head ref are passed through env
# and treated only as data.
types: [opened, synchronize, reopened, ready_for_review]

permissions: {}
Expand All @@ -23,6 +23,8 @@ jobs:
with:
client-id: ${{ vars.OTELBOT_CLIENT_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
permission-issues: write
permission-pull-requests: read

- name: Check for API changes and update PR
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: fossas/fossa-action@29693cc50323968e039056be419b32989fc5880c # v2.0.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# this needs to be in its own workflow in order to make OSSF scorecard happy
- uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
2 changes: 2 additions & 0 deletions .github/workflows/issue-management-feedback-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Remove labels
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/javadoc-crawler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/prepare-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# zizmor: ignore[artipacked] Credentials are required by the branch push below.
persist-credentials: true

- run: |
if [[ ! $GITHUB_REF_NAME =~ ^release/v[0-9]+\.[0-9]+\.x$ ]]; then
Expand Down Expand Up @@ -52,10 +55,11 @@ jobs:
with:
client-id: ${{ vars.OTELBOT_CLIENT_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
permission-pull-requests: write

- name: Create pull request
env:
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
# pull requests from secrets.GITHUB_TOKEN do not run workflows
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
run: |
message="Prepare release $VERSION"
Expand All @@ -64,6 +68,7 @@ jobs:
git checkout -b $branch
git commit -a -m "$message"
git push --set-upstream origin $branch
gh pr create --title "[$GITHUB_REF_NAME] $message" \
--body "$message." \
--base $GITHUB_REF_NAME
gh pr create \
--title "[$GITHUB_REF_NAME] $message" \
--body "$message." \
--base $GITHUB_REF_NAME
27 changes: 19 additions & 8 deletions .github/workflows/prepare-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Verify prerequisites
run: |
Expand All @@ -35,6 +37,8 @@ jobs:
# history is needed to allow fast-forward push below in case
# re-running this workflow after merging additional PRs to main
fetch-depth: 0
# zizmor: ignore[artipacked] Credentials are required by the branch pushes below.
persist-credentials: true

- name: Create release branch
run: |
Expand Down Expand Up @@ -68,10 +72,11 @@ jobs:
with:
client-id: ${{ vars.OTELBOT_CLIENT_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
permission-pull-requests: write

- name: Create pull request against the release branch
env:
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
# pull requests from secrets.GITHUB_TOKEN do not run workflows
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
run: |
message="Prepare release $VERSION"
Expand All @@ -80,9 +85,10 @@ jobs:
git checkout -b $branch
git commit -a -m "$message"
git push --set-upstream origin $branch
gh pr create --title "[$RELEASE_BRANCH_NAME] $message" \
--body "$message." \
--base $RELEASE_BRANCH_NAME
gh pr create \
--title "[$RELEASE_BRANCH_NAME] $message" \
--body "$message." \
--base $RELEASE_BRANCH_NAME

create-pull-request-against-main:
permissions:
Expand All @@ -92,6 +98,9 @@ jobs:
- prereqs
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# zizmor: ignore[artipacked] Credentials are required by the branch push below.
persist-credentials: true

- name: Set environment variables
run: |
Expand Down Expand Up @@ -124,10 +133,11 @@ jobs:
with:
client-id: ${{ vars.OTELBOT_CLIENT_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
permission-pull-requests: write

- name: Create pull request against main
env:
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
# pull requests from secrets.GITHUB_TOKEN do not run workflows
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
run: |
message="Update version to $NEXT_VERSION"
Expand All @@ -137,6 +147,7 @@ jobs:
git checkout -b $branch
git commit -a -m "$message"
git push --set-upstream origin $branch
gh pr create --title "$message" \
--body "$body" \
--base main
gh pr create \
--title "$message" \
--body "$body" \
--base main
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
fi

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
Expand Down Expand Up @@ -71,6 +73,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
persist-credentials: false

- name: Check that change log update was merged to main
run: |
Expand All @@ -87,6 +90,7 @@ jobs:
with:
# tags are needed for the generate-release-contributors.sh script
fetch-depth: 0
persist-credentials: false

- name: Generate release notes
env:
Expand Down Expand Up @@ -146,6 +150,8 @@ jobs:
# add change log sync (if any) into this PR since the apidiff update
# is required before any other PR can be merged anyway
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Copy change log section from release branch
env:
Expand All @@ -157,6 +163,8 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: main
# zizmor: ignore[artipacked] Credentials are required by the branch push below.
persist-credentials: true

- name: Merge change log to main
env:
Expand Down Expand Up @@ -219,11 +227,12 @@ jobs:
with:
client-id: ${{ vars.OTELBOT_CLIENT_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
permission-pull-requests: write

- name: Create pull request against main
env:
VERSION: ${{ needs.release.outputs.version }}
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
# pull requests from secrets.GITHUB_TOKEN do not run workflows
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
run: |
message="Post-release updates for $VERSION"
Expand All @@ -233,6 +242,7 @@ jobs:
git checkout -b $branch
git commit -m "$message"
git push --set-upstream origin $branch
gh pr create --title "$message" \
--body "$body" \
--base main
gh pr create \
--title "$message" \
--body "$body" \
--base main
1 change: 1 addition & 0 deletions .github/workflows/reusable-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # needed for merge-base used in modified-files mode
persist-credentials: false

- uses: jdx/mise-action@9e7f7633ff6f6d6048a9418a68d48f288f50eb14 # v4.2.3

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sonatype-guide-dependency-audit-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/survey-on-merged-pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Survey on Merged PR by Non-Member

on:
pull_request_target: # zizmor: ignore[dangerous-triggers] — this workflow only calls the reusable shared workflow; no PR code is checked out or executed.
pull_request_target:
# zizmor: ignore[dangerous-triggers] This only calls the trusted reusable
# workflow; no PR code is checked out or executed.
types: [closed]
branches: [main]

Expand Down
Loading
Loading