Skip to content

Ensure the MAYHEM_PROJECT envvar is initialized consistently.#251

Merged
ethan42 merged 2 commits into
mainfrom
update-env
Jul 12, 2026
Merged

Ensure the MAYHEM_PROJECT envvar is initialized consistently.#251
ethan42 merged 2 commits into
mainfrom
update-env

Conversation

@ethan42

@ethan42 ethan42 commented Jul 11, 2026

Copy link
Copy Markdown
Member

The MAYHEM_PROJECT name may differ from the repository name - and this is why the project/owner fields are inputs to this flow; the code before was not allowing for that differentiation.

@ethan42 ethan42 self-assigned this Jul 11, 2026
@github-actions

github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown

Mayhem Automated Code Testing Report

❗ 1 Defects Found

CWE Severity Defect Description
7.1 Improper Input Validation The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Testing details found at https://app.mayhem.security/forallsecure/mcode-action/mayhemit/37

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@ethan42 ethan42 changed the title Ensure the mayhem project is initialized consistently. Ensure the MAYHEM_PROJECT envvar is initialized consistently. Jul 11, 2026
Comment thread dist/index.js
`;
process.env["MAYHEM_TOKEN"] = config.mayhemToken;
process.env["MAYHEM_URL"] = mayhemUrl;
process.env["MAYHEM_PROJECT"] = config.repo;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the new code does not use repo at all; is that intentional? I'm not sure what the repo field even is.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is github_workspace/github_project. there was an implied assumption that MAYHEM_PROJECT must be the same as the github combo.

@ethan42 ethan42 merged commit 2d04947 into main Jul 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants