python-tuf/.github/workflows/codeql-analysis.yml
Jussi Kukkonen 3bc24ad2c3
Merge pull request #2159 from jku/permissions-tweaks
Github workflows: Permissions tweaks
2022-11-15 14:34:48 +02:00

33 lines
713 B
YAML

name: "CodeQL Analysis"
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
schedule:
- cron: '30 0 * * 2'
workflow_dispatch:
permissions: {}
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Initialize CodeQL
uses: github/codeql-action/init@c3b6fce4ee2ca25bc1066aa3bf73962fda0e8898
with:
languages: 'python'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c3b6fce4ee2ca25bc1066aa3bf73962fda0e8898