Skip to content

Commit d3e9a4e

Browse files
authored
[Internal] Use github app token in checkout action (#4441)
## Changes <!-- Summary of your changes that are easy to understand --> ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] using Go SDK - [ ] using TF Plugin Framework
1 parent 3ca3345 commit d3e9a4e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/tagging.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ jobs:
1818
group: databricks-deco-testing-runner-group
1919
labels: ubuntu-latest-deco
2020
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
2621
- name: Generate GitHub App Token
2722
id: generate-token
2823
uses: actions/create-github-app-token@v1
2924
with:
3025
app-id: ${{ secrets.DECO_SDK_TAGGING_APP_ID }}
3126
private-key: ${{ secrets.DECO_SDK_TAGGING_PRIVATE_KEY }}
3227

28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
token: ${{ steps.generate-token.outputs.token }}
33+
3334
# NOTE: actions/create-github-app-token automatically masks the output token,
3435
# so the token is not exposed in the logs even as part of the remote.
3536
- name: Set up Git configuration
3637
run: |
3738
git config user.name "Databricks SDK Release Bot"
38-
git remote set-url origin https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/${{ github.repository }}.git
3939
4040
- name: Run Deco Taggging script
4141
run: |

NEXT_CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
### Exporter
1414

15+
* Additional tuning of references in databricks_job ([#4434](https://github.com/databricks/terraform-provider-databricks/pull/4434))
16+
1517
### Internal Changes
1618

1719
* Started to use the new release framework for releases of the Terraform provider.

0 commit comments

Comments
 (0)