Skip to content

Custom token: as input or environ? #1353

Answered by mre
tobon4 asked this question in Q&A
Jan 23, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

It should work like you described.
We have the following code in the action:

https://github.com/lycheeverse/lychee-action/blob/8c9a282bef269f1ba1f727d1f79c5b8139bf3a5a/entrypoint.sh#L13-L16

This merges the input token.

However, when I introduced a custom input token, I think I forgot to pass the correct argument/input to the action.
See https://github.com/lycheeverse/lychee-action/pull/222/files for the fix.

If you have some time, could you try if it works with that version?
You should be able to do

- uses: lycheeverse/lychee-action@0ff48c676a36e0f3fa8b30ae9188f3c14409c520
  with: 
    token: ${{ secrets.CUSTOM_TOKEN }}

After a successful test, we can merge this.

Thanks for raising this.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tobon4
Comment options

@tobon4
Comment options

@mre
Comment options

mre Jan 29, 2024
Maintainer

Answer selected by mre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants