Skip to content

license_finder

license_finder #13

Workflow file for this run

# Run License Finder
name: license_finder
on:
#pull_request:
# types: [ opened, reopened ]
#push:
# # Trigger on any branch push
# branches:
# - '**' # Match any branch
workflow_dispatch:
branches:
- '**' # Match any branch
workflow_call:
# Setting environment variables which can be used in the entire workflow (only in the current one)
env:
# Used for build_docker job
CONTAINER_REGISTRY: registry.gitlab.com
jobs:
license_finder:
runs-on: 'ubuntu-latest'
steps:
# Checking out the GitHub repository on the runner
- name: Checkout
uses: 'actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608'
# Uses github action to pull docker image and run commands
- name: Run the build process with Docker
uses: 'addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185'
with:
username: ${{ vars.LICENSE_FINDER_GITLAB_REGISTRY_USERNAME }}
password: ${{ secrets.LICENSE_FINDER_GITLAB_REGISTRY_PASSWORD }}
registry: ${{ env.CONTAINER_REGISTRY }}
image: ${{ env.CONTAINER_REGISTRY }}/crosslend/docker/license-finder/main
options: --entrypoint /bin/bash registry.gitlab.com/crosslend/docker/license-finder/main:latest -c "source /usr/share/rvm/scripts/rvm;"
run: |
license_finder --prepare --composer-check-require-only=true --decisions-file=/doc/dependency_decisions.yml --python-version=3