Skip to content

Fix pipeline issues: missing token and package.json errors #18

Description

@seriAlizations

(generated by copilot) on my request)

When running the .github/workflows/npm-audit-fix.yml pipeline, the following errors are reported:

  • Input 'token' not supplied. Unable to continue (likely due to missing COMMAND_BOT_PAT secret)
  • ENOENT: no such file or directory, open 'package.json'
  • The process '/usr/bin/git' failed with exit code 1

Steps to resolve:

  1. Ensure that the GitHub secret COMMAND_BOT_PAT is created and available for the workflow, or update the workflow to use a valid token.
  2. Double-check the branch matrix in the workflow; only include branches that exist and contain package.json.
  3. Verify that package.json is present in the root of each listed branch (main, master, stable30, stable31). If not, update the matrix or add the file accordingly.
  4. Add conditions to ignore non-existent branches or missing files to prevent jobs from failing unnecessarily.

Repository: IONOS-Productivity/ncw-mailtemplate
Label: bug

This ticket tracks the resolution of all reported workflow issues. Please update with findings or fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions