Skip to content

Commit 9f943f7

Browse files
authored
add permissions and add version import (#2376)
1 parent 0bafe35 commit 9f943f7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
build:
1515
name: Build + Publish
1616
runs-on: ubuntu-latest
17+
18+
permissions:
19+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
20+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
21+
1722
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'release' && github.event.action == 'published')
1823
steps:
1924
- uses: actions/checkout@v3

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ require 'cucumber'
33
require 'cucumber/rake/task'
44
require 'yard'
55

6+
require_relative "lib/datadog_api_client/version"
7+
68
Cucumber::Rake::Task.new(:features)
79

810
YARD::Rake::YardocTask.new(:docs) do |t|

0 commit comments

Comments
 (0)