Skip to content

fix: ensure safer workflow permissions (CKV2_GHA_1) #76

fix: ensure safer workflow permissions (CKV2_GHA_1)

fix: ensure safer workflow permissions (CKV2_GHA_1) #76

Workflow file for this run

---
#########################
#########################
## GitHub Super-Linter ##
#########################
#########################
name: Super-Linter
#############################
# Start the job on all push #
#############################
on:
push:
############################
# Ensure safer permissions #
############################
permissions:
contents: read
#####################################
# Cancel any in-progress job or run #
#####################################
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v4
with:
# Super-Linter requires full repository history for analysis
fetch-depth: 0
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: super-linter/super-linter@v6
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
# Super-Linter requires this variable even if it is unset
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
...