microsoft / microsoft/security-devops-azdevops
trivy output does not match trivy@1 - Azure DevOps Pipeline
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 86
- Forks
- 22
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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. 😄
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Ubuntu Azure DevOps-Pipeline mit MicrosoftSecurityDevOps@1, trivy@1 und dem bereitgestellten gdnconfig-Pfad nachzubilden, und vergleiche anschließend die Ausgaben beider Tasks. Untersuche, warum der Konfigurationspfad das Suffix -linux erhält und warum sich die Ergebnisse unterscheiden; abgeschlossen ist die Aufgabe, wenn das Verhalten erklärt oder korrigiert und ein funktionierendes Beispiel für einen Linux-Agenten dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure
- Bereich
- ci-cd, devops, security
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100