mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-08-11 11:31:04 +00:00
fix: action parameters are not granted access to secrets
This commit is contained in:
parent
b669ffeda7
commit
466ca34619
12
action.yml
12
action.yml
|
@ -6,21 +6,21 @@ description: |
|
||||||
inputs:
|
inputs:
|
||||||
url:
|
url:
|
||||||
description: 'URL of the Forgejo instance'
|
description: 'URL of the Forgejo instance'
|
||||||
default: '${{ env.GITHUB_SERVER_URL }}'
|
default: '${{ env.FORGEJO_SERVER_URL }}'
|
||||||
repo:
|
repo:
|
||||||
description: 'owner/project relative to the URL'
|
description: 'owner/project relative to the URL'
|
||||||
default: '${{ github.repository }}'
|
default: '${{ forge.repository }}'
|
||||||
tag:
|
tag:
|
||||||
description: 'Tag of the release'
|
description: 'Tag of the release'
|
||||||
default: '${{ github.ref_name }}'
|
default: '${{ forge.ref_name }}'
|
||||||
title:
|
title:
|
||||||
description: 'Title of the release (defaults to tag)'
|
description: 'Title of the release (defaults to tag)'
|
||||||
sha:
|
sha:
|
||||||
description: 'SHA of the release'
|
description: 'SHA of the release'
|
||||||
default: '${{ github.sha }}'
|
default: '${{ forge.sha }}'
|
||||||
token:
|
token:
|
||||||
description: 'Forgejo application token'
|
description: 'Forgejo application token'
|
||||||
default: '${{ secrets.GITHUB_TOKEN }}'
|
default: '${{ forge.token }}'
|
||||||
release-dir:
|
release-dir:
|
||||||
description: 'Directory in whichs release assets are uploaded or downloaded'
|
description: 'Directory in whichs release assets are uploaded or downloaded'
|
||||||
required: true
|
required: true
|
||||||
|
@ -57,7 +57,7 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
|
- run: echo "${{ forge.action_path }}" >> $FORGEJO_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: |
|
- run: |
|
||||||
export FORGEJO="${{ inputs.url }}"
|
export FORGEJO="${{ inputs.url }}"
|
||||||
|
|
Loading…
Reference in a new issue