Skip to content

action.yml fails to load: secrets.GITHUB_TOKEN invalid in input default (workflow always errors) #3

Description

@ezequiellich44-cmd

Bug

Every run of the CoinPayPortal invoice workflow fails before any step executes:

##[error]profullstack/coinpaybot/v0/action.yml (Line: 9, Col: 18): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GITHUB_TOKEN
##[error]Failed to load profullstack/coinpaybot/v0/action.yml

This happens on any /coinpay ... comment, from any user, including on repos where the workflow and secrets are configured correctly (e.g. profullstack/malware-test-prs run 32010029188).

Cause

action.yml declares an input with:

default: ${{ secrets.GITHUB_TOKEN }}

The secrets context is not available inside action.yml — GitHub only exposes github context there. ${{ secrets.* }} in an action metadata file is always rejected at load time, so the action cannot be resolved and the job dies in "Set up job".

Suggested fix

Remove the default and pass the token from the workflow instead:

  • action.yml: drop default: ${{ secrets.GITHUB_TOKEN }} from the github-token input
  • coinpay-invoice.yml example: keep github-token: ${{ secrets.GITHUB_TOKEN }} (that context IS valid in a workflow file)

Affected

  • All consumers using profullstack/coinpaybot@v0 (malware-test-prs, etc.)
  • Any existing pending /coinpay invoice requests (e.g. malware-test-prs PRs #170–#175) cannot be approved until this is fixed and the workflow reruns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions