Skip to content

chore: remove workflow permissions #1185

chore: remove workflow permissions

chore: remove workflow permissions #1185

Workflow file for this run

name: PR Lint
on:
pull_request_target: {}
workflow_dispatch: {}
permissions:
contents: read
jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
# Checkout of the source to be validated
- uses: actions/checkout@v4
with:
path: checkout_pr
# Checkout of tools from 'main'; necessary to avoid compromise of GitHub token
# (due to pull_request_target)
- uses: actions/checkout@v4
with:
ref: main
path: checkout_main
- uses: actions/setup-node@v4
with:
node-version: lts/*
# Run linter from 'main' on the working copy
- name: run linter
run: |
cd checkout_pr
../checkout_main/lint.sh