Skip to content

Commit 8f5583d

Browse files
committed
Set token as input
1 parent a5e2d3b commit 8f5583d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/actions/check_if_latest_release/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: check_if_latest_release
22
inputs:
3+
token:
4+
description: "Github API token"
35
runs:
46
using: composite
57
steps:
68
- name: Push Bundle to MRT
79
id: release
810
run: |-
9-
RELEASE_JSON=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
11+
RELEASE_JSON=$(curl -s -H "Authorization: token ${{ inputs.token }}" \
1012
"https://api.github.com/repos/${{ github.repository }}/releases/latest")
1113
1214
LATEST_TAG_NAME=$(echo "$RELEASE_JSON" | jq -r '.tag_name')

.github/workflows/deploy_latest_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717

1818
- name: Check if latest release
1919
uses: ./.github/actions/check_if_latest_release
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
2022

2123
deploy-bug-bounty:
2224
needs: check-latest-release

0 commit comments

Comments
 (0)