Skip to content

Error running locally using act: ACTION_TOKEN variable not set #110

@LukeSavefrogs

Description

@LukeSavefrogs

Running the following causes the workflow to fail with the error in the subject:

- name: Install composer dependencies
  uses: php-actions/composer@v6
  with:
    php_version: '8.2'
    args: --no-dev --no-interaction --prefer-dist --optimize-autoloader

I tried adding ACTION_TOKEN as an env variable but it still doesn't work:

- name: Install composer dependencies
  uses: php-actions/composer@v6
  with:
    php_version: '8.2'
    args: --no-dev --no-interaction --prefer-dist --optimize-autoloader
  env:
    ACTION_TOKEN: ${{ secrets.GITHUB_TOKEN }}

The action does NOT work even removing all optional parameters:

- name: Install composer dependencies
  uses: php-actions/composer@v6

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