- Set your Cookie header value in Line 3 of give-access.sh
- Set the team IDs that will have access on Line 24. You can add multiple teams.
- Edit the repos.txt file with one repository per line
- Make sure jq curl and pup are installed. (pup is available at https://github.com/EricChiang/pup)
- Run the script (./give-access.sh). A response code of
302
indicates the change was made successfully for that repo. Anything else is failure.
The only 3 cookies that you need to set are: __Host-user_session_same_site, user_session, _gh_sess
The values for user_session and _gh_sess are the same.
@captn3m0 I am getting 302 after running this script but when I go to github UI then i don't see the desired team have access to security alerts.