Skip to content

chore(teuto-cnpg/dependencies): update common docker tag to v1.5.0 #7011

chore(teuto-cnpg/dependencies): update common docker tag to v1.5.0

chore(teuto-cnpg/dependencies): update common docker tag to v1.5.0 #7011

name: Check used licenses
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
on:
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
paths:
- charts/**
jobs:
getChangedChart:
uses: ./.github/workflows/get-changed-chart.yaml
permissions:
pull-requests: read
with:
pr_number: ${{ github.event.pull_request.number }}
check-licenses:
name: check licenses
permissions:
contents: read
runs-on: ubuntu-latest
needs: getChangedChart
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: pip install yq
- name: Install sponge
run: sudo apt-get -yq install moreutils
- run: /home/linuxbrew/.linuxbrew/bin/brew install syft trivy
- env:
TEUTO_PORTAL_WORKER_PULL_TOKEN: ${{ secrets.TEUTO_PORTAL_WORKER_PULL_TOKEN }}
GHCR_PULL_TOKEN: ${{ secrets.GHCR_PULL_TOKEN }}
run: |
[[ "$RUNNER_DEBUG" == 1 ]] && set -x
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
./.github/scripts/scan-for-licenses.sh "charts/${{ needs.getChangedChart.outputs.chart }}"
check-licenses-list:
name: check licenses from list
permissions:
contents: read
runs-on: ubuntu-latest
needs: getChangedChart
env:
CHART: ${{ needs.getChangedChart.outputs.chart }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: pip install yq
- run: ./.github/scripts/check-licenses.sh "charts/$CHART"