Skip to content

fix: add pull-requests write permission to super-linter workflow (#623) #1567

fix: add pull-requests write permission to super-linter workflow (#623)

fix: add pull-requests write permission to super-linter workflow (#623) #1567

Workflow file for this run

---
#################################
#################################
## Super Linter GitHub Actions ##
#################################
#################################
name: Lint Code Base
#
# Documentation:
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
#
#############################
# Start the job on all push #
#############################
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
packages: read
pull-requests: write
statuses: write
###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest
env:
SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS: 168 # 7日
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Full git history is needed to get a proper list
# of changed files within `super-linter`
fetch-depth: 0
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: .bun-version
- run: bash "${GITHUB_WORKSPACE}/scripts/super_linter/build/set_path.sh"
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
LINTER_RULES_PATH: .
FILTER_REGEX_EXCLUDE: ".*dist/.*"
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_GIT_COMMITLINT: false
VALIDATE_CHECKOV: false
VALIDATE_BIOME_FORMAT: false
VALIDATE_BIOME_LINT: false
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true