From 30dd6e331f6504f24e6eff882ee4a6628a475bfc Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Thu, 19 Sep 2024 11:45:12 -0600 Subject: [PATCH] ci: release workflow needs to use the GH App token --- .github/release-workflows.jsonnet | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/minor-release-pr.yml | 2 +- .github/workflows/patch-release-pr.yml | 2 +- .github/workflows/release.yml | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/release-workflows.jsonnet b/.github/release-workflows.jsonnet index 5b179b3006d8f..72fdbfd5dc17e 100644 --- a/.github/release-workflows.jsonnet +++ b/.github/release-workflows.jsonnet @@ -70,7 +70,7 @@ local imagePrefix = 'grafana'; imagePrefix='grafana', releaseLibRef=releaseLibRef, releaseRepo='grafana/loki', - useGitHubAppToken=false, + useGitHubAppToken=true, ), false, false ), 'check.yml': std.manifestYamlDoc({ diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8e63a1e5d9bae..e98295e8ec6fb 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -12,4 +12,4 @@ "pull_request": {} "push": "branches": - - "main" \ No newline at end of file + - "main" diff --git a/.github/workflows/minor-release-pr.yml b/.github/workflows/minor-release-pr.yml index 74c00fdf23c44..07865ee6c8337 100644 --- a/.github/workflows/minor-release-pr.yml +++ b/.github/workflows/minor-release-pr.yml @@ -828,4 +828,4 @@ name: "Prepare Minor Release PR from Weekly" permissions: contents: "write" id-token: "write" - pull-requests: "write" \ No newline at end of file + pull-requests: "write" diff --git a/.github/workflows/patch-release-pr.yml b/.github/workflows/patch-release-pr.yml index 0a62fa1c9228e..c0f1dddb60225 100644 --- a/.github/workflows/patch-release-pr.yml +++ b/.github/workflows/patch-release-pr.yml @@ -828,4 +828,4 @@ name: "Prepare Patch Release PR" permissions: contents: "write" id-token: "write" - pull-requests: "write" \ No newline at end of file + pull-requests: "write" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a87b37917757..3d074be5ec592 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ env: PUBLISH_TO_GCS: false RELEASE_LIB_REF: "main" RELEASE_REPO: "grafana/loki" - USE_GITHUB_APP_TOKEN: false + USE_GITHUB_APP_TOKEN: true jobs: createRelease: if: "${{ fromJSON(needs.shouldRelease.outputs.shouldRelease) }}" @@ -219,4 +219,4 @@ name: "create release" permissions: contents: "write" id-token: "write" - pull-requests: "write" \ No newline at end of file + pull-requests: "write"