diff --git a/.github/workflows/build-semconv-daily.yml b/.github/workflows/build-semconv-daily.yml index d12ee85ebea2..239f1b32c19c 100644 --- a/.github/workflows/build-semconv-daily.yml +++ b/.github/workflows/build-semconv-daily.yml @@ -20,3 +20,6 @@ jobs: with: success: ${{ needs.build-dev.result == 'success' }} repo: open-telemetry/semantic-conventions + secrets: + opentelemetrybot_github_token: + ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} diff --git a/.github/workflows/reusable-workflow-notification.yml b/.github/workflows/reusable-workflow-notification.yml index edbdaa48e08d..da744518e3c7 100644 --- a/.github/workflows/reusable-workflow-notification.yml +++ b/.github/workflows/reusable-workflow-notification.yml @@ -11,6 +11,10 @@ on: repo: type: string required: false + secrets: + opentelemetrybot_github_token: + type: string + required: false jobs: workflow-notification: @@ -20,10 +24,9 @@ jobs: - name: Open issue or add comment if issue already open env: - # need to use opentelemetrybot for opening issues in other repos + # need to use opentelemetrybot token when opening issues in other repos GH_TOKEN: - ${{ inputs.repo && secrets.OPENTELEMETRYBOT_GITHUB_TOKEN || - secrets.GITHUB_TOKEN }} + ${{ secrets.opentelemetrybot_github_token || secrets.GITHUB_TOKEN }} run: | if [ -z "${{ inputs.repo }}" ]; then repo="$GITHUB_REPOSITORY"