Skip to content

feat(TDOPS-4875): use elevation tokens #4947

feat(TDOPS-4875): use elevation tokens

feat(TDOPS-4875): use elevation tokens #4947

Workflow file for this run

name: PR lint
on:
pull_request:
permissions:
contents: write
deployments: read
pull-requests: write # needed to annotate code
statuses: write
checks: write
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Checkout sources
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Use Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: 18
check-latest: true
registry-url: "https://registry.npmjs.org/"
scope: "@talend"
cache: "yarn"
- name: Install
run: yarn install --frozen-lockfile --ignore-scripts
- name: eslint + stylelint
continue-on-error: true
id: eslint
run: yarn lint
- name: Merge lint
run: yarn lint-merge-report master ${GITHUB_HEAD_REF}
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@2c426a387ed738e9522e93abfcb4cfc57b46458a #v2.2.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: ./eslint-report.json