Skip to content

Merge pull request #291 from github/fix-workflow-permissions #482

Merge pull request #291 from github/fix-workflow-permissions

Merge pull request #291 from github/fix-workflow-permissions #482

Workflow file for this run

name: Verify cached license metadata
on:
# run on pushes to main
push:
branches:
- main
# run on all pull request events
pull_request:
types:
- opened
- reopened
- synchronize
# run on demand
workflow_dispatch:
jobs:
licensed:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
# setup action requirements
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc
with:
ruby-version: ruby
# install and run this action
- run: npm install --production --ignore-scripts
- name: Run setup-licensed
uses: ./
with:
version: '4.x'
github_token: ${{ secrets.GITHUB_TOKEN }}
# run licensed-ci to check and update licenses
- uses: github/licensed-ci@v1
with:
workflow: push_for_bots
dependabot_skip: 'true'
github_token: ${{ secrets.GITHUB_TOKEN }}
cleanup_on_success: 'true'