Skip to content

Comments

cicd(versioning): Automate proper version tagging in the bouncer.go that is reported to Crowdsec LAPI#314

Merged
maxlerebourg merged 6 commits intomaxlerebourg:mainfrom
Shadoweee77:main
Feb 19, 2026
Merged

cicd(versioning): Automate proper version tagging in the bouncer.go that is reported to Crowdsec LAPI#314
maxlerebourg merged 6 commits intomaxlerebourg:mainfrom
Shadoweee77:main

Conversation

@Shadoweee77
Copy link
Contributor

In reference to #287 - this is an automatic way. Works fine on my forked repo. I hope it will finally report a correct version so I can know which machines to update at a glance :)

@maxlerebourg
Copy link
Owner

Maybe create a version.go at the root project and import/in the same package and update this file instead of sed bouncer.go

@Shadoweee77
Copy link
Contributor Author

kinda meh, but here You go.

@Shadoweee77
Copy link
Contributor Author

Hey - will this be merged for next release? :)

@Shadoweee77
Copy link
Contributor Author

Should work now. Still get an error in my repo ci, but it's referencing this repo's cache for the package.

Removed the verification step after updating the version and modified the commit message to include an emoji.
@maxlerebourg maxlerebourg merged commit c2bbc4d into maxlerebourg:main Feb 19, 2026
1 check passed
@maxlerebourg
Copy link
Owner

I just try to publish a new version and the repo policy block the update.

@Shadoweee77
Copy link
Contributor Author

Just tested on my fork - worked flawlessly.

@maxlerebourg
Copy link
Owner

I tested too but repo policy prevent push directly on main branch...

@Shadoweee77
Copy link
Contributor Author

Yeah - You need to add "github-actions[bot]" user as an exception to this if You haven't done that already. Docs: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule

Maybne this isn't an enterprise solution, but a fully automatic one :)

renovate bot added a commit to sdwilsh/ansible-playbooks that referenced this pull request Feb 21, 2026
sdwilsh pushed a commit to sdwilsh/ansible-playbooks that referenced this pull request Feb 21, 2026
@Shadoweee77
Copy link
Contributor Author

Hey @maxlerebourg - did You get it working? :)

@maxlerebourg
Copy link
Owner

Not really, and you ?

@Shadoweee77
Copy link
Contributor Author

Oh - I can't :) It's done in the repository settings. You need to be an owner or maintainer.

@maxlerebourg
Copy link
Owner

Yes, but if you have the same setup as this repo, you can try to reproduce it on your side. I don't find the option to whitelist the github-action[bot]

@Shadoweee77
Copy link
Contributor Author

Sadly I don't have the same setup - it doesn't fork over. I've linked the docs, and the GitHub's own copilot does really well with their official docs.

Regarding this rule the only downside I can see is someone could push a bad command for the CI worker to execute, but than again it would have to be accepted manually and merged to take effect on the main branch.

The only other way around this that I know of is to bump the version manually in the file.

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