Repository navigation
Merge pull request #1036 from Homebrew/dependabot/github_actions/gith… #46
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
| # This file is synced from the `.github` repository, do not modify it directly. | |
| name: Licenses | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| paths: | |
| - "**/Cargo.lock" | |
| - "**/Cargo.toml" | |
| - "**/Gemfile.lock" | |
| - "**/Package.resolved" | |
| - "**/Package.swift" | |
| - "**/package-lock.json" | |
| - "**/package.json" | |
| - "**/requirements.txt" | |
| - .github/denied-licenses.txt | |
| - .github/scripts/check-licenses.sh | |
| - .github/workflows/licenses.yml | |
| merge_group: | |
| permissions: | |
| actions: write | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash -euo pipefail {0} | |
| jobs: | |
| licenses: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Homebrew | |
| uses: Homebrew/actions/setup-homebrew@1e34f2e2acaa766b7efacb8c26352e6abbb023f9 # 2026.09.13.1 | |
| - name: Install git-pkgs | |
| run: brew install git-pkgs | |
| - name: Cache git-pkgs licence metadata | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ${{ runner.temp }}/git-pkgs | |
| key: git-pkgs-metadata-v1-${{ hashFiles('**/Gemfile.lock', '**/Cargo.toml', '**/Cargo.lock', '**/Package.resolved', '**/Package.swift', '**/package.json', '**/package-lock.json', '**/requirements.txt') }} | |
| restore-keys: git-pkgs-metadata-v1- | |
| - name: Check licences | |
| env: | |
| # Identify ecosyste.ms requests for its polite pool: | |
| # https://github.com/git-pkgs/git-pkgs#configuration | |
| GIT_PKGS_ECOSYSTEMS_FROM: leads@brew.sh | |
| run: bash .github/scripts/check-licenses.sh |