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-maven
Note: 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 clean
Configure gateway credentials using Github secret named
GATEWAY_URL
GATEWAY_USERNAME
GATEWAY_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: maven
Github recommends using
commit SHA
to pin 3rd party actions instead of ref
- maven
- gradle
- pip