Skip to content

Instantly share code, notes, and snippets.

View odsod's full-sized avatar
🧘
On parental leave

Oscar Söderlund odsod

🧘
On parental leave
View GitHub Profile
@odsod
odsod / dependabot-review.bash
Last active January 18, 2021 07:46
Scripted Dependabot reviews
#!/bin/bash
set -euo pipefail
user=$(gh api graphql -f query="{ viewer { login } }" | jq -r .data.viewer.login)
echo "Listing dependency reviews for ${user}..."
search_results=$(gh api graphql -f query="
query {
@odsod
odsod / main.go
Last active March 22, 2021 20:01
Scrub unsupported annotations from a protobuf descriptor before submitting to Google Cloud Endpoints.
package main
import (
"flag"
"io/ioutil"
"log"
"os"
"google.golang.org/genproto/googleapis/api/annotations"
"google.golang.org/genproto/googleapis/longrunning"