Skip to content

ci: add permissions to workflows #9

ci: add permissions to workflows

ci: add permissions to workflows #9

Workflow file for this run

name: CodeQL Analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '1 1 * * 3'
permissions:
contents: read
jobs:
analyze:
name: Static Code Analysis with CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- actions
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Initialize CodeQL
uses: github/codeql-action/[email protected]
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/[email protected]
with:
category: "/language:${{matrix.language}}"