Skip to content

Adding a custom action to downgrade upgrade api version - #161

Merged
Hannah-PortSwigger merged 7 commits into
PortSwigger:mainfrom
radinanti:main
Feb 10, 2026
Merged

Adding a custom action to downgrade upgrade api version#161
Hannah-PortSwigger merged 7 commits into
PortSwigger:mainfrom
radinanti:main

Conversation

@radinanti

Copy link
Copy Markdown
Contributor

Bambda Contributions

  • Bambda has a valid header, featuring an @author annotation and suitable description
  • Bambda compiles and executes as expected
  • Only .bambda files have been added or modified (README.md files are automatically updated / generated after PR merge)
  • Bambda is in valid yaml format, and has a name, id, function, and location. To ensure this is correct, export the Bambda from your Bambda library in Burp.

This custom action detects the API version from the path and upgrades downgrades it. You can change the minimum and maximum version numbers in the code.

@Hannah-PortSwigger Hannah-PortSwigger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for your Bambda submission!

We've reviewed your code, and have the following improvement suggestions.

Please let us know if you have any questions on the feedback provided.

Comment thread CustomAction/ApiDowngradeUpgrade.bambda Outdated
Comment thread CustomAction/ApiDowngradeUpgrade.bambda Outdated
Comment thread CustomAction/ApiDowngradeUpgrade.bambda Outdated

@radinanti radinanti left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's way better now :)
Thanks for the improvement <3

@Hannah-PortSwigger

Copy link
Copy Markdown
Contributor

Hi @radinanti

I just wanted to check that you'd pushed your changes, as it looks like there is only your initial commit in this pull request 🙂

radinanti and others added 4 commits January 26, 2026 16:51
Replaced URL parsing with baserequest.path()
Changed API version detection from loop to regex
@radinanti

Copy link
Copy Markdown
Contributor Author

Hi @Hannah-PortSwigger
Sorry for the delay

@Hannah-PortSwigger

Copy link
Copy Markdown
Contributor

Hi @radinanti

Thank you, these changes look good.

It looks like the Custom Action README has also been updated - are you able to revert this change?

I believe this change must have occurred due to a GitHub action running in the wrong context, so I'll take a look at getting that updated in the meantime.

@radinanti

Copy link
Copy Markdown
Contributor Author

Hi @Hannah-PortSwigger
I believe the GitHub action is working correctly because committing the changes also updated the README file, which contains the custom action code.
Or maybe I'm wrong
Should i revert the README ?

@Hannah-PortSwigger

Copy link
Copy Markdown
Contributor

Hi @radinanti

When submitting Bambdas to this repo, we only accept the .bambda file.

I've made a change to the automatic workflows to adjust the behavior on forks. Could you pull in these changes and then revert the README? This should prevent the README from automatically updating again.

Please let me know if you have any issues!

@radinanti

Copy link
Copy Markdown
Contributor Author

Hi @Hannah-PortSwigger,
I tried to revert it, but there was a conflict, so I simply deleted the changes made by the GitHub Action from my PR. Could you please check if I did it correctly?
I’m still learning how to use Git properly sorry about that.

@Hannah-PortSwigger Hannah-PortSwigger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for your changes!

This looks good 🙂

If there's anything else we can help with, then please let us know.

@Hannah-PortSwigger
Hannah-PortSwigger merged commit 70287c8 into PortSwigger:main Feb 10, 2026
1 check 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.

2 participants