Skip to content

gke-gcloud-auth-plugin/36.1.1 package update #22192

gke-gcloud-auth-plugin/36.1.1 package update

gke-gcloud-auth-plugin/36.1.1 package update #22192

name: Licenses Check
on: [pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
# set up correct version of node
- name: Setup Node
id: node-setup
run: echo "NODE_VERSION=20.8.1" >> ${GITHUB_OUTPUT}
- uses: actions/setup-node@v2
with: { node-version: "${{ steps.node-setup.outputs.NODE_VERSION }}" }
- uses: actions/checkout@v3
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
id: pnpm-install
with:
version: 8.9.2
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # SECURITY: pin third-party action hashes
with:
ruby-version: "3.2.2" # Not needed with a .ruby-version file - uses: actions/setup-ruby@v1
- uses: actions/setup-go@v2
with: { go-version: "1.22" }
- name: Install license_finder
id: installLicenseFinder
run: gem install license_finder:7.1.0 # sync with licenses-update.yml
- name: Check dependencies
id: checkDepedencies
run: LICENSE_CHECK=true ./dev/licenses.sh
# If we detect a failure on the two above steps, we post a comment pointing toward the associated How-to in the handbook.
- uses: actions/github-script@v6
if: always() && (steps.installLicenseFinder.outcome == 'failure' || steps.checkDepedencies.outcome == 'failure')
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "> [!CAUTION] \n> License checking failed, please read: [how to deal with third parties licensing](https://www.notion.so/sourcegraph/Dealing-with-third-parties-licensing-2d8247b243d44eaea2c6003f2efae4ef)."
})