digger
digger copied to clipboard
pass the teams list from the backend to the action so that the cli could check it accordingly
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
Related to #808
Was this fixed? I am no longer getting the error since v0.3.19 (might be fixed in earlier).
@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