Problem: header is always needed when using webhook
Issue
Hi, So i have been trying out webhooks and I was trying to integrate it into Gitea.
- I created an integration with no auth
- Add an Alias on that integration
- Open the url in Firefox to test if task will be executed -> Task was not executed but no error message in Firefox (Like 404 etc.)
- Tried with curl if task will be executed -> Task was not executed. Docker compose logs state
level=info msg="Receiving Integration from:level=info msg="1 integrations found for aliasno task execution in log - tried adding a new matcher on header for integration with
keyand123456-> This would not execute task - tried adding a new matcher on header for integration with
tandt-> This would execute task logs state
level=info msg="Receiving Integration from: x.x.x.x"
level=info msg="1 integrations found for alias x"
level=info msg="Running integration 8"
level=info msg="Task 9 added to queue"
level=info msg="Set resource locker with TaskRunner 9"
level=info msg="Task 9 removed from queue"
I have tested this on 2 machines and 2 installations. Same phenomenon. I'm not sure what's going on. If you need any more information, please don't hesitate to contact me.
Impact
Web-Backend (APIs)
Installation method
Docker
Database
Postgres
Browser
Firefox
Semaphore Version
v2.10.22-e44910d-1721658561
Ansible Version
No response
Logs & errors
semaphore-1 | time="2024-08-12T16:41:04Z" level=info msg="Receiving Integration from: " semaphore-1 | time="2024-08-12T16:41:04Z" level=info msg="1 integrations found for alias nc1kqg0ttuz88gkx" semaphore-1 | time="2024-08-12T16:41:38Z" level=info msg="Receiving Integration from: " semaphore-1 | time="2024-08-12T16:41:38Z" level=info msg="1 integrations found for alias nc1kqg0ttuz88gkx
semaphore-1 | time="2024-08-12T16:42:38Z" level=info msg="Receiving Integration from: " semaphore-1 | time="2024-08-12T16:42:38Z" level=info msg="1 integrations found for alias nc1kqg0ttuz88gkx" semaphore-1 | time="2024-08-12T16:42:38Z" level=info msg="Running integration 8" semaphore-1 | time="2024-08-12T16:42:38Z" level=info msg="Task 9 added to queue" semaphore-1 | time="2024-08-12T16:42:41Z" level=info msg="Set resource locker with TaskRunner 9" semaphore-1 | time="2024-08-12T16:42:41Z" level=info msg="Task 9 removed from queue"
Manual installation - system information
none
Configuration
git repository task template with git repository
Additional information
No response
It can be "Solved" with using =! and adding random things. But i don't think that's intended.
I have a similar issue: when using Token auth method, the unused username field of the selected credential must be set, otherwise even the correct password/token is not accepted. Btw, the secret selection box is titled "Vault Password" which confused me for a long while until I realized this must be where the token is supposed to be selected.
I had hit this issue. Rule t != t solves it.
Version 2.10.35
When an issue report is the best documentation available to find out about the general usage of a feature 😬 Thanks for sharing your solution ;-)
Now no need matcher for aliased integrations.