python-tuf/.github/workflows/codeql-analysis.yml
Jussi Kukkonen 53521bfda0 workflows: Set top-level permissions
This changes very little but it does mean any jobs added in future have to
be explicit about the permissions they need. This also makes OSSF scorecard
happier.

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
2022-10-30 12:56:22 +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@ec3cf9c605b848da5f1e41e8452719eb1ccfb9a6
with:
languages: 'python'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ec3cf9c605b848da5f1e41e8452719eb1ccfb9a6