icon

GitHub Script Runner

Downloads and Runs a bash script stored on a private GitHub repo.

Downloads and Runs a bash script stored on a private GitHub repo.

Configuring the Step

Before using the step, you need to push your bash script into a private GitHub repository and set up a GitHub personal access token with read permission on the same repository.

  1. The "file raw path" param expects the full path of the script file "https://raw.githubusercontent.com/{owner}/{repo}/{branch}/{file}"

  2. The "run script" param indicates that the script should be run after the download "yes" to run the bash script and "no" to just download the raw file

  3. The "github access token" param must be a Bitrise Secret config

Troubleshooting

If the Step fails, check if the given GitHub Personal Access Token has read permission on the script's repository.

Useful links

https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

Similar steps

Found a great GitHub Gist that you'd like to use during your workflow? Just add the raw URL, Bitrise will download it and run it as a bash script!

Install the gems you need, run the script you'd like.

Run scripts from a file

Run your ApiSpotter tests and get the test result to your Bitrise build.