From 5be32d370dd9d57dd7e56ba1f97f25ef83eb080c Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Wed, 12 Aug 2026 11:46:30 -0500 Subject: [PATCH 1/2] Use github create-github-app-token Replaces the "tibdex" one that is deprecated. Fixes #1592. --- .github/workflows/updatecli.yml | 17 ++++++++--------- elastic-apm.gemspec | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/updatecli.yml b/.github/workflows/updatecli.yml index ba998c52d..98d6e98f9 100644 --- a/.github/workflows/updatecli.yml +++ b/.github/workflows/updatecli.yml @@ -19,16 +19,15 @@ jobs: - name: Get token id: get_token - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 + uses: actions/create-github-app-token@v2 with: - app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }} - private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} - permissions: >- - { - "contents": "write", - "pull_requests": "write" - } - + app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }} + private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} + permission-contents: write + permission-pull-requests: write + permission-members: read + repositories: + apm-agent-ruby - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 with: registry: ghcr.io diff --git a/elastic-apm.gemspec b/elastic-apm.gemspec index 249d508c1..d4ee3f0b8 100644 --- a/elastic-apm.gemspec +++ b/elastic-apm.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |spec| 'changelog_uri' => 'https://www.elastic.co/guide/en/apm/agent/ruby/current/release-notes.html' } spec.license = 'Apache-2.0' - spec.required_ruby_version = ">= 2.3.0", "< 5.0" + spec.required_ruby_version = ">= 2.3.0" spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features|bench|\.ci|\.github)/}) From 8f4b6cdcfc22680c8b7995fa8d4f8df856c3974f Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Wed, 12 Aug 2026 11:48:34 -0500 Subject: [PATCH 2/2] don't do that --- elastic-apm.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastic-apm.gemspec b/elastic-apm.gemspec index d4ee3f0b8..249d508c1 100644 --- a/elastic-apm.gemspec +++ b/elastic-apm.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |spec| 'changelog_uri' => 'https://www.elastic.co/guide/en/apm/agent/ruby/current/release-notes.html' } spec.license = 'Apache-2.0' - spec.required_ruby_version = ">= 2.3.0" + spec.required_ruby_version = ">= 2.3.0", "< 5.0" spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features|bench|\.ci|\.github)/})