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