digger icon indicating copy to clipboard operation
digger copied to clipboard

pass the teams list from the backend to the action so that the cli could check it accordingly

Open motatoes opened this issue 1 year ago • 3 comments

If user attempts to run with the backend flow the action will fail to fetch user teams since it does not have access:

Error while fetching user teams for CI service: failed to list github teams: GET https://api.github.com/orgs/gojoko-marketing/teams: 403 Resource not accessible by integration []
WARNING: teams failed to be fetched, passing an empty list instead for access policy checks

We need to make a change in the backend to fetch teams list and send it as a part of the serialized payload to the github action job

motatoes avatar Jan 09 '24 15:01 motatoes

Related to #808

ZIJ avatar Jan 09 '24 15:01 ZIJ

Was this fixed? I am no longer getting the error since v0.3.19 (might be fixed in earlier).

chvima avatar Feb 05 '24 09:02 chvima

@chvima this PR not addressed yet (the teams are still not passed from backend) but the cli will ignore failure to get teams with a warning message in the logs as stated above :) but the policy will not get the right list of teams

motatoes avatar Feb 05 '24 11:02 motatoes