diff --git a/.drone.yml b/.drone.yml index a713652a492..30259726dd7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -362,7 +362,8 @@ steps: image: grafana/build-container:1.6.2 name: yarn-install - commands: - - git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1 + - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" + --depth=1 - cd grafana-enterprise - git fetch origin "refs/tags/*:refs/tags/*" - git tag -d $${TEST_TAG} && git push --delete origin $${TEST_TAG} && git tag $${TEST_TAG} @@ -376,7 +377,7 @@ steps: DOWNSTREAM_REPO: from_secret: downstream GITHUB_TOKEN: - from_secret: github_token + from_secret: github_token_pr TEST_TAG: v0.0.0-test failure: ignore image: grafana/build-container:1.6.2 @@ -1222,7 +1223,8 @@ steps: image: grafana/build-container:1.6.2 name: yarn-install - commands: - - git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1 + - git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" + --depth=1 - cd grafana-enterprise - git fetch origin "refs/tags/*:refs/tags/*" - git tag -d $${TEST_TAG} && git push --delete origin $${TEST_TAG} && git tag $${TEST_TAG} @@ -1236,7 +1238,7 @@ steps: DOWNSTREAM_REPO: from_secret: downstream GITHUB_TOKEN: - from_secret: github_token + from_secret: github_token_pr TEST_TAG: v0.0.0-test failure: ignore image: grafana/build-container:1.6.2 @@ -5326,6 +5328,6 @@ kind: secret name: packages_secret_access_key --- kind: signature -hmac: e27e9edb142704ae4e5bdd205123d75c0c1ad5944ae2956847a0b4b411b325eb +hmac: 31fbe97765960b69214b14b9a2514ff7f6441a4e6d18636c47e7e0989a896fde ... diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index 6305c2e4a84..0eb41b321f0 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -1198,12 +1198,12 @@ def trigger_test_release(): 'name': 'trigger-test-release', 'image': build_image, 'environment': { - 'GITHUB_TOKEN': from_secret('github_token'), + 'GITHUB_TOKEN': from_secret('github_token_pr'), 'DOWNSTREAM_REPO': from_secret('downstream'), 'TEST_TAG': 'v0.0.0-test', }, 'commands': [ - 'git clone "https://github.com/grafana/grafana-enterprise.git" --depth=1', + 'git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" --depth=1', 'cd grafana-enterprise', 'git fetch origin "refs/tags/*:refs/tags/*"', 'git tag -d $${TEST_TAG} && git push --delete origin $${TEST_TAG} && git tag $${TEST_TAG} && git push origin $${TEST_TAG}',