File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -373,6 +373,8 @@ Publish GH Asset:
373373 stage : release-publish
374374 rules :
375375 - !reference [.release-pipeline-job, rules]
376+ id_tokens :
377+ << : *dd-octo-sts-id-token
376378 before_script :
377379 - *export_MAKE_release_params
378380 script :
Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ parse_args "$@"
2828GH_ASSET_PATH=" $artifacts_path /Datadog.xcframework.zip"
2929REPO_NAME=" DataDog/dd-sdk-ios"
3030
31- authenticate () {
32- echo_subtitle " Authenticate 'gh' CLI"
33- echo_info " Exporting 'GITHUB_TOKEN' for CI"
34- export GITHUB_TOKEN=$( get_secret $DD_IOS_SECRET__GH_CLI_TOKEN )
31+ verify_gh_auth () {
3532 echo_info " ▸ gh auth status"
3633 gh auth status
3734 if [[ $? -ne 0 ]]; then
@@ -59,5 +56,7 @@ echo_info "Publishing '$GH_ASSET_PATH' to '$tag' release in '$REPO_NAME'"
5956echo_info " ▸ Using DRY_RUN = $DRY_RUN "
6057echo_info " ▸ Using OVERWRITE_EXISTING = $OVERWRITE_EXISTING "
6158
62- authenticate
59+ export GITHUB_TOKEN=$( dd-octo-sts --disable-tracing token --scope DataDog/dd-sdk-ios --policy self.release)
60+ verify_gh_auth
6361upload
62+ dd-octo-sts --disable-tracing revoke
You can’t perform that action at this time.
0 commit comments