ci(copr): Use GITHUB_TOKEN instead of PAT to update release (#4289)
This commit is contained in:
parent
f22b00d698
commit
d924dd9091
2 changed files with 5 additions and 1 deletions
4
.github/workflows/ci-copr.yml
vendored
4
.github/workflows/ci-copr.yml
vendored
|
|
@ -46,6 +46,8 @@ jobs:
|
||||||
startsWith(github.repository, 'LizardByte/')
|
startsWith(github.repository, 'LizardByte/')
|
||||||
needs:
|
needs:
|
||||||
- call-copr-ci
|
- call-copr-ci
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download build artifacts
|
- name: Download build artifacts
|
||||||
|
|
@ -68,5 +70,5 @@ jobs:
|
||||||
name: ${{ github.event.release.name }}
|
name: ${{ github.event.release.name }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
tag: ${{ github.event.release.tag_name }}
|
tag: ${{ github.event.release.tag_name }}
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }} # use built-in token to avoid repeating workflow triggers
|
||||||
virustotal_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
|
virustotal_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
|
||||||
|
|
|
||||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -95,6 +95,8 @@ jobs:
|
||||||
name: Linux Copr
|
name: Linux Copr
|
||||||
if: github.event_name != 'push' # releases are handled directly in ci-copr.yml
|
if: github.event_name != 'push' # releases are handled directly in ci-copr.yml
|
||||||
needs: release-setup
|
needs: release-setup
|
||||||
|
permissions:
|
||||||
|
contents: write # needed to update releases
|
||||||
uses: ./.github/workflows/ci-copr.yml
|
uses: ./.github/workflows/ci-copr.yml
|
||||||
secrets:
|
secrets:
|
||||||
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue