Skip to content

Commit 21db6b6

Browse files
committed
Use GITHUB_TOKEN for testing instead of OIDC
1 parent fe65486 commit 21db6b6

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/update-kubernetes-versions.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,12 @@ jobs:
2020
name: Check for new Kubernetes version
2121
runs-on: ubuntu-latest
2222
permissions:
23-
id-token: write # Required for OIDC token from GitHub
24-
environment:
25-
name: main
23+
contents: write # For creating branches and commits
24+
pull-requests: write # For creating PRs
2625
steps:
27-
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
28-
id: octo-sts
29-
with:
30-
scope: DataDog/datadog-agent
31-
policy: self.update-kubernetes-versions.create-pr
32-
3326
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3427
with:
3528
persist-credentials: true
36-
token: ${{ steps.octo-sts.outputs.token }}
3729

3830
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3931
with:
@@ -60,8 +52,6 @@ jobs:
6052
with:
6153
commit-message: "chore(e2e): add new Kubernetes version to e2e tests"
6254
branch: update-k8s-versions-${{ github.run_id }}-${{ github.run_attempt }}
63-
token: ${{ steps.octo-sts.outputs.token }}
64-
sign-commits: true
6555
title: "[automated] Add new Kubernetes version to e2e tests"
6656
body: |
6757
### What does this PR do?

0 commit comments

Comments
 (0)