File tree Expand file tree Collapse file tree 6 files changed +36
-0
lines changed
internal/pkg/templates/bridged/.github/workflows
cloudflare/.github/workflows Expand file tree Collapse file tree 6 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ permissions:
2323 pull-requests : write
2424
2525env :
26+
27+ # upgrade-provider calls into gh CLI tool to open PRs that uses GH_TOKEN env var, which is not obivous.
28+ # setting this correctly makes sure the PR has the correct owner and permissions work as expected.
29+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
30+
2631 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2732
2833jobs :
5863 env :
5964 V : ${{inputs.version}}
6065 REPO : ${{github.repository}}
66+ GH_TOKEN : ${{env.GH_TOKEN}}
6167 run : |
6268 upgrade-provider "$REPO" --kind=java --java-version="$V"
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ permissions:
2323 pull-requests : write
2424
2525env :
26+
27+ # upgrade-provider calls into gh CLI tool to open PRs that uses GH_TOKEN env var, which is not obivous.
28+ # setting this correctly makes sure the PR has the correct owner and permissions work as expected.
29+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
30+
2631 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2732
2833jobs :
5863 env :
5964 V : ${{inputs.version}}
6065 REPO : ${{github.repository}}
66+ GH_TOKEN : ${{env.GH_TOKEN}}
6167 run : |
6268 upgrade-provider "$REPO" --kind=java --java-version="$V"
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ permissions:
2323 pull-requests : write
2424
2525env :
26+
27+ # upgrade-provider calls into gh CLI tool to open PRs that uses GH_TOKEN env var, which is not obivous.
28+ # setting this correctly makes sure the PR has the correct owner and permissions work as expected.
29+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
30+
2631 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2732
2833jobs :
5863 env :
5964 V : ${{inputs.version}}
6065 REPO : ${{github.repository}}
66+ GH_TOKEN : ${{env.GH_TOKEN}}
6167 run : |
6268 upgrade-provider "$REPO" --kind=java --java-version="$V"
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ permissions:
2323 pull-requests : write
2424
2525env :
26+
27+ # upgrade-provider calls into gh CLI tool to open PRs that uses GH_TOKEN env var, which is not obivous.
28+ # setting this correctly makes sure the PR has the correct owner and permissions work as expected.
29+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
30+
2631 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2732
2833jobs :
5863 env :
5964 V : ${{inputs.version}}
6065 REPO : ${{github.repository}}
66+ GH_TOKEN : ${{env.GH_TOKEN}}
6167 run : |
6268 upgrade-provider "$REPO" --kind=java --java-version="$V"
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ permissions:
2323 pull-requests : write
2424
2525env :
26+
27+ # upgrade-provider calls into gh CLI tool to open PRs that uses GH_TOKEN env var, which is not obivous.
28+ # setting this correctly makes sure the PR has the correct owner and permissions work as expected.
29+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
30+
2631 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2732
2833jobs :
5863 env :
5964 V : ${{inputs.version}}
6065 REPO : ${{github.repository}}
66+ GH_TOKEN : ${{env.GH_TOKEN}}
6167 run : |
6268 upgrade-provider "$REPO" --kind=java --java-version="$V"
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ permissions:
2323 pull-requests : write
2424
2525env :
26+
27+ # upgrade-provider calls into gh CLI tool to open PRs that uses GH_TOKEN env var, which is not obivous.
28+ # setting this correctly makes sure the PR has the correct owner and permissions work as expected.
29+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
30+
2631 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2732
2833jobs :
5863 env :
5964 V : ${{inputs.version}}
6065 REPO : ${{github.repository}}
66+ GH_TOKEN : ${{env.GH_TOKEN}}
6167 run : |
6268 upgrade-provider "$REPO" --kind=java --java-version="$V"
You can’t perform that action at this time.
0 commit comments