When setting up Auth0 as a SAML IdP for GitHub, you most likely created an Application in Auth0 representing GitHub and enabled the SAML WebApp addon, as explained here. In order to ensure that the proper SAML response is sent to GitHub, make sure to configure the audience value in the JSON settings for the SAML Web App addon, replacing "acme" with your org name in GitHub:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function help { | |
echo "Add collaborators to one or more repositories on github" | |
echo "" | |
echo "Syntax: $0 -u user [-l] [-D] -r repo1,repo2 <collaborator id>" | |
echo "" | |
echo " -u OAuth token to access github" | |
echo " -l list collaborators" | |
echo " -r repositories, list as owner/repo[,owner/repo,...]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script that works to delete private packages stored on Github Packages | |
# | |
# Script is based on the work of Troy Fontaine (github.com/troyfontaine) | |
GITHUB_TOKEN=$GPR_PAT | |
REPO_OWNER=$1 | |
REPO_NAME=$2 | |
PACKAGE_NAME=$3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish Jekyll Docker image for Octocat Generator | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: clean up, docker login && docker build && docker push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
- repo: self | |
trigger: | |
- master | |
steps: | |
- script: ./cleanup.sh | |
displayName: Clean Up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
organization(login: "se-saml") { | |
auditLog(first: 50) { | |
edges { | |
node { | |
... on RepositoryAuditEntryData { | |
repository { | |
name | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query getOrgsInBusiness($slug: String!) { | |
business(slug: $slug) { | |
... on Business { | |
name | |
resourcePath | |
avatarUrl | |
members(first: 100) { | |
edges { | |
organizations(first: 100) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple OAuth server retrieving the email adresses of a GitHub user | |
package main | |
import ( | |
"context" | |
"encoding/json" | |
"github.com/google/go-github/github" | |
"golang.org/x/oauth2" | |
"log" | |
"net/http" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
/* | |
Environment variables: These environment variables should be set in Jenkins in: `https://github-demo.ci.cloudbees.com/job/<org name>/configure`: | |
For deployment purposes: | |
- HEROKU_PREVIEW=<your heroku preview app> | |
- HEROKU_PREPRODUCTION=<your heroku pre-production app> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Client side script to trigger pre-receive hook and scan its output | |
# usage: diff-branches-client.sh <repo URL> <compare branch> [base branch] [magic trigger branch] | |
# Examples: | |
# diff-branches.client.sh https://[email protected]/jonico/large-branch-diff-with-prereceive-hook.git compare-branch feature-branch # diffs compare-branch with feature branch | |
# diff-branches.client.sh https://[email protected]/jonico/large-branch-diff-with-prereceive-hook.git compare-branch # diffs compare-branch with master | |
# diff-branches.client.sh https://[email protected]/jonico/large-branch-diff-with-prereceive-hook.git f75b18abbb06 f75b18abbb06^1 # diffs commit f75b18abbb06 with its parent | |
# diff-branches.client.sh https://[email protected]/jonico/large-branch-diff-with-prereceive-hook.git master master~2 # diffs latest commit on master with its grandparent |