diff --git a/.github/linters/.checkov.yml b/.github/linters/.checkov.yml new file mode 100644 index 0000000..2645248 --- /dev/null +++ b/.github/linters/.checkov.yml @@ -0,0 +1,3 @@ +quiet: true +skip-check: + - CKV_GHA_7 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e2edaea..7856e8e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,16 +21,16 @@ on: schedule: - cron: '19 4 * * 3' +permissions: + actions: read + contents: read + security-events: write + jobs: analyze: name: Analyze runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - strategy: fail-fast: false matrix: diff --git a/.github/workflows/example-workflow.yml b/.github/workflows/example-workflow.yml index b14ebb8..8853bc8 100644 --- a/.github/workflows/example-workflow.yml +++ b/.github/workflows/example-workflow.yml @@ -9,6 +9,10 @@ on: default: 'World' type: string +permissions: + actions: read + contents: read + jobs: say-hello: name: Say Hello diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1e36684..82689c0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -20,6 +20,8 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup Node.js id: setup-node @@ -34,7 +36,7 @@ jobs: - name: Lint Codebase id: super-linter - uses: super-linter/super-linter/slim@v5 + uses: super-linter/super-linter/slim@v6 env: DEFAULT_BRANCH: main FILTER_REGEX_EXCLUDE: dist/**/*