igorcosta / api_workspace

A restful API demo for GitHub Workspace
MIT License
0 stars 0 forks source link

Review super lint and update permissions on the workflow file #24

Closed igorcosta closed 6 months ago

igorcosta commented 6 months ago

Please review the ci-cd-pipeline.yml file and consider this version slim of superlint as also the fetch-depth of the checkout@v4 operations,

Validate and add the required permissions to the workflow

lint: permissions: contents: read

runs-on: ubuntu-latest

steps:
  - uses: actions/checkout@v4
    with:
      fetch-depth: 0

  - uses: super-linter/super-linter/slim@v6
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      DEFAULT_BRANCH: main
      FILTER_REGEX_EXCLUDE: docs/tool/.*
      VALIDATE_MARKDOWN: true
      VALIDATE_YAML: true