-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.74 KB
/
Copy pathcodeql.yml
File metadata and controls
59 lines (51 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CodeQL
# Analisi statica delle parti eseguibili della skill. Con languages: python
# CodeQL prende tutti e tre i file: scripts/profilo_voce.py,
# scripts/prova_profilo_voce.py e extras/hooks/consenti-solo-profilo-voce.py.
# Il resto della repo è testo e non viene analizzato.
on:
# paths-ignore evita di lanciare l'analisi Python quando cambiano solo
# testo o metadati: una modifica al solo Markdown non avvia la CI. Un push
# o una pull request che tocca anche un file di codice la avvia lo stesso,
# e l'esecuzione settimanale garantisce comunque la copertura periodica.
push:
branches: ["main"]
paths-ignore:
- "**/*.md"
- "LICENSE"
- "CITATION.cff"
pull_request:
branches: ["main"]
paths-ignore:
- "**/*.md"
- "LICENSE"
- "CITATION.cff"
schedule:
# Lunedì alle 05:27 UTC, sfasato per non cadere nel minuto zero.
- cron: "27 5 * * 1"
# Permessi minimi in cima: la scrittura vive solo nel job che ne ha bisogno.
permissions: read-all
concurrency:
group: "codeql-${{ github.ref }}"
cancel-in-progress: true
jobs:
analisi:
name: Analisi CodeQL (Python)
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Preleva il codice
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Inizializza CodeQL
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4
with:
languages: python
queries: security-extended
- name: Analizza
uses: github/codeql-action/analyze@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4
with:
category: "/language:python"