Skip to content

Commit

Permalink
backport of commit e963d55 (#24585)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Bennett <[email protected]>
  • Loading branch information
hc-github-team-nomad-core and gulducat authored Dec 3, 2024
1 parent 2c46257 commit c101a67
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
exit 1
fi
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Retrieve Vault-hosted Secrets
if: endsWith(github.repository, '-enterprise')
id: vault
Expand All @@ -65,8 +67,7 @@ jobs:
secrets: |-
kv/data/github/hashicorp/nomad-enterprise/gha ELEVATED_GITHUB_TOKEN ;
- name: Git config token
if: endsWith(github.repository, '-enterprise')
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN || secrets.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
- name: Git config user/name
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -215,5 +216,5 @@ jobs:
fi
permissions:
contents: write
contents: read
id-token: write

0 comments on commit c101a67

Please sign in to comment.