chore(main): [bot] release teuto-portal-k8s-worker:3.4.0 #6994
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |