Skip to content

Instantly share code, notes, and snippets.

@victorwon
victorwon / gist:1f5c167a89a676e46a48d4af7e84f876
Created June 2, 2023 02:27
Convert GitLab SAST json to Sonarqube Generic Import format
jq '{
"issues": [
.vulnerabilities[] |
{
"engineId": .scanner.name,
"ruleId": .cve,
"severity": (
if .severity == "None" then "INFO"
elif .severity == "Low" then "MINOR"
elif .severity == "Medium" then "MAJOR"
@victorwon
victorwon / gist:765550f45c492fa1149c2a808f1ed917
Created June 2, 2023 01:17
Convert Gitlab Dependency Scan json to Sonarqube Generic Import format
jq '{
"issues": [
.vulnerabilities[] |
{
"engineId": "GitLabSDS",
"ruleId": (.identifiers[] | select(.type == "cve") | .value),
"severity": (
if .severity == "None" then "INFO"
elif .severity == "Low" then "MINOR"
elif .severity == "Medium" then "MAJOR"
@victorwon
victorwon / mac-apps.md
Last active September 7, 2015 16:55 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,