Utility to configure build tools to use security gateway as package repository. Refer to https://safedep.io for more details.
pacman aka. Package Manager inspired by the pacman is a tool for easily configuring various package managers such as Gradle, Maven etc. to use the security gateway for downloading required dependencies.
Run pacman configuration wizard
./pacman.sh configure./pacman.sh setup-gradle./pacman.sh setup-mavenNote: This script overwrite
$HOME/.m2/settings.xml
To configure package managers building a specific project, set environment
GATEWAY_PROJECT_ID=project-id
Remove any configuration file added by pacman
./pacman cleanConfigure gateway credentials using Github secret named
GATEWAY_URLGATEWAY_USERNAMEGATEWAY_PASSWORD
Use the following Github action step just before invoking application build
jobs:
build:
steps:
[...]
- name: Configure environment to use SafeDep Gateway
uses: safedep/pacman@main
with:
gateway_url: ${{ secrets.GATEWAY_URL }}
gateway_username: ${{ secrets.GATEWAY_USERNAME }}
gateway_password: ${{ secrets.GATEWAY_PASSWORD }}
package_manager: mavenGithub recommends using
commit SHAto pin 3rd party actions instead of ref
- maven
- gradle
- pip