This script is used to download the SBOM report from JFrog Xray.
Before you run the script, ensure you have the following environment variables exported globally. If they are not, the script will prompt you to enter them:
JFrog_PLATFORM_URL
: The URL of your JFrog platform.JFrog_TOKEN_USER
: Your JFrog user token.JFrog_ACCESS_TOKEN
: Your JFrog access token.REPO_NAME
: The name of the repository.
-
Clone the repository to your local machine.
git clone https://github.com/selvasabapathy/bash.git cd bash
-
Make sure the script has execute permissions. If not, you can add them using:
chmod +x asbom.sh
-
Run the script using one of the following commands:
sh asbom.sh
or
./asbom.sh
The script checks for the following environment variables. If they are not set globally, you will be prompted to enter them during the execution of the script.
JFrog_PLATFORM_URL
: URL of the JFrog platform.JFrog_TOKEN_USER
: JFrog token user.JFrog_ACCESS_TOKEN
: JFrog access token.REPO_NAME
: Name of the repository.
Feel free to submit issues or pull requests if you find any bugs or have suggestions for improvements.