Remove token
The documentation states "The called workflow is automatically granted access to `github.token` and `secrets.GITHUB_TOKEN`."
This commit is contained in:
6
.github/workflows/create_package.yml
vendored
6
.github/workflows/create_package.yml
vendored
@@ -88,8 +88,6 @@ jobs:
|
||||
path: artifacts/
|
||||
- name: Create Release
|
||||
uses: ./.github/workflows/create_release.yml
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
build_linux:
|
||||
@@ -128,8 +126,6 @@ jobs:
|
||||
path: artifacts/
|
||||
- name: Create Release
|
||||
uses: ./.github/workflows/create_release.yml
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build_win:
|
||||
name: Windows
|
||||
@@ -187,5 +183,3 @@ jobs:
|
||||
path: artifacts/
|
||||
- name: Create Release
|
||||
uses: ./.github/workflows/create_release.yml
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
7
.github/workflows/create_release.yml
vendored
7
.github/workflows/create_release.yml
vendored
@@ -2,9 +2,6 @@ name: Create Release
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
secrets:
|
||||
token:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
create_release:
|
||||
@@ -20,7 +17,7 @@ jobs:
|
||||
id: last_release
|
||||
uses: InsonusK/get-latest-release@v1.0.1 # https://github.com/InsonusK/get-latest-release
|
||||
with:
|
||||
myToken: ${{ secrets.token }}
|
||||
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
exclude_types: "draft|prerelease"
|
||||
view_top: 1
|
||||
|
||||
@@ -39,6 +36,6 @@ jobs:
|
||||
name: Release ${{ steps.changelog.outputs.version }}
|
||||
tag: ${{ steps.changelog.outputs.version }}
|
||||
artifacts: "./artifacts/*"
|
||||
token: ${{ secrets.token }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
allowUpdated: true
|
||||
body: ${{ steps.changelog.outputs.description }}
|
||||
|
||||
Reference in New Issue
Block a user