Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Integrating EWM with GitHub Enterprise - Validating commits

Hello,
   Registered GitHub repository in Source control generates a unique Webhook URL having repo key.
   To link GitHub commits to EWM work-items, we need this Webhook to be used in GitHub for workitem linking to work.

  I have observed, using one valid Webhook URL(from Git registered repositories in EWM):
  • we can establish linking to all project areas across EWM from GitHub. 
  • Also, we can establish linking from all GitHub repo's to all project areas.
  Question :
  • is this the expected behavior  ?
  • If yes, why is this URL specific to project area & generates a unique key ?

0 votes


Accepted answer

Permanent link

Hello Rakesh


Although the URL is project specific, if the secret key used in the webhook URL no explicit user authorization is required. 

However, we do provide pre-receive hooks as part of the Integration toolkit that allow you to enable Process enforcements for Git Commits. 

To configure process enforcement for Git Push operations, create a pre-receive hook in GitHub Enterprise, and set permissions and preconditions in the IBM® Engineering Workflow Management (EWM) project area.

Rakesh A selected this answer as the correct answer

1 vote

Comments
Hi Shubjit ,
        Still i don't get your it completely. In my case i am not using secret key. Only Webhook URL is used.  Also we have not enabled pre-receive hooks.

Does this mean, above behaviors I have mentioned is expected one ?

 Hi Rakesh


Yes, the behavior is expected when Webhooks are used.
The Secret key is embedded in the Webhook URL

1 vote

Hi Shubjit ,
        Using this webhook URL, it's possible to make/ integrate Git commits across the different project areas. I am not understanding why its still called from IBM as project / project area specific.

Our Current Approach :
Currently we have 500+ GitHub repos & growing. We are registering GitHub repo's in different project areas to get webhook URL for integration.
For Eg:
CCM Project Area A-> repo 1 - Webhook URL 1
CCM Project Area B -> repo 2 - Webhook URL 2

Future Approach : As integration of commits is working with webhook URL irrespective of project areas. I'm planning to register all GitHub repo's in one project area (fore better maintenance).  Do you see any problems here ?

For Eg:
CCM Project Area A -> repo 1 - Webhook URL 1
CCM Project Area A-> repo 2 - Webhook URL 2

 Hi Rakesh


Could you raise a case on this with our Support team? We will look into it and see If there is a need to update any documentation.

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495
× 6,121
× 1,325
× 97
× 20

Question asked: Oct 07 '22, 6:03 a.m.

Question was seen: 990 times

Last updated: Oct 17 '22, 5:58 a.m.

Confirmation Cancel Confirm