I sugget you to edit the script to include the GITHUB_SECRET_TOKEN also during the cloning to allow the scripts to work also on private repositories.
line 17 should be git clone "https://$GITHUB_SECRET_TOKEN@github.com/$GITHUB_REPO" "$repo_temp”
Cheers,
Michele
Only one problem with that: that will display the secret in the output, so it would require the cloning to also be redirected to /dev/null to avoid leakage.
@emmekappa writes:
Only one problem with that: that will display the secret in the output, so it would require the cloning to also be redirected to /dev/null to avoid leakage.