microsoft / microsoft/security-devops-azdevops
trivy output does not match trivy@1 - Azure DevOps Pipeline
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 86
- Fork
- 22
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Agent: Ubuntu latest, using Azure DevOps pipelines.
I have been running trivy side by side and found the results in MicrosoftSecurityDevOps@1 to be less than the output results running in trivy@1
The lack of working examples for MicrosoftSecurityDevOps@1 probably doesn't help - it takes me some time to figure out how to use the task and i cant get gdnconfig files to work.
I originally started with this config:
- job: microsoft_security_devops
continueOnError: false
steps:
- task: MicrosoftSecurityDevOps@1
displayName: 'Microsoft Security DevOps'
inputs:
command: 'run'
tools: terrascan, trivy
I then created a gdnconfig file and tried to use the
config: '$(System.DefaultWorkingDirectory)/workflows/templates/*.gdnconfig'
I tried loads of variances of the path but every single time it adds a postfix '-linux' to the file name. So the path would turn into:
config: '$(System.DefaultWorkingDirectory)/workflows/templates/*-linux.gdnconfig'
Anyway, the output for the results showed 0 for the MicrosoftSecurityDevOps@1 task and 5 (2 critical, 1 high, and 2 medium) using the trivy@1 task.
I have no confidence in what it showing me and the lack of decent examples and clear documentation is compounding the issue.
Any help appreciated - especially if anyone has got a working example of using trivy, with a gdnconfig file on a Linux agent. 😄
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo la pipeline Ubuntu Azure DevOps con MicrosoftSecurityDevOps@1, trivy@1 e il percorso gdnconfig fornito, quindi confronta gli output di entrambi i task. Indaga sul motivo per cui al percorso di configurazione viene aggiunto il suffisso -linux e sul motivo per cui i risultati differiscono; il lavoro è completato quando il comportamento è spiegato o corretto e viene documentato un esempio funzionante per un agente Linux.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure
- Ambito
- ci-cd, devops, security
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100