Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize Mayhem URL to ensure mAPI CLI matches Mayhem platform #534

Merged
merged 8 commits into from
May 2, 2024

Conversation

xansec
Copy link
Contributor

@xansec xansec commented May 2, 2024

No description provided.

@xansec
Copy link
Contributor Author

xansec commented May 2, 2024

Note to self: Will probably want to update the README.md as well...

src/main.ts Outdated
@@ -21,7 +21,7 @@ async function mapiCLI(): Promise<string> {
}

// Get latest version from API
let cliVersion = 'latest'
// let cliVersion = 'latest'
Copy link
Member

Choose a reason for hiding this comment

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

that'd work if multiple revisions were available for each instance. (there aren't)

what if you made a mayhem-url parameter instead and parameterized the string on Line 45?

@xansec
Copy link
Contributor Author

xansec commented May 2, 2024

Actually URL needs to be updated here as well
https://github.com/ForAllSecure/mapi-action/blob/main/src/mapiapi.ts#L6

@xansec
Copy link
Contributor Author

xansec commented May 2, 2024

Actually URL needs to be updated here as well https://github.com/ForAllSecure/mapi-action/blob/main/src/mapiapi.ts#L6

This is resolved with 57e16de.

@ethan42
Copy link
Member

ethan42 commented May 2, 2024

👍 please update the PR title and description before merging + fix action errors

@xansec xansec changed the title allow custom cli version Parameterize Mayhem URL to ensure mAPI CLI matches Mayhem platform May 2, 2024
@xansec xansec merged commit d3ddb97 into main May 2, 2024
3 checks passed
@xansec xansec deleted the xansec-versioning branch May 2, 2024 21:43
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.

2 participants