name: "codeql"

on:
  push:
    branches: [ main ]

jobs:
  analyze:
    name: analyze
    runs-on: ubuntu-latest

    permissions:
      security-events: write
      actions: read
      contents: read

    steps:
    - uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
    - uses: github/codeql-action/init@883476649888a9e8e219d5b2e6b789dc024f690c # v1
    - uses: github/codeql-action/autobuild@883476649888a9e8e219d5b2e6b789dc024f690c # v1
    - uses: github/codeql-action/analyze@883476649888a9e8e219d5b2e6b789dc024f690c # v1
