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
| 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
| 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
| 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
| #!/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
| #!/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
| { | |
| repository(owner: "rails", name: "rails") { | |
| nameWithOwner | |
| description | |
| dependencyGraphManifests(withDependencies: true) { | |
| nodes { | |
| filename | |
| dependenciesCount | |
| exceedsMaxSize | |
| parseable |
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: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: |
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 Docker image + Container Scanning | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| outputs: | |
| dockerimage: ${{ steps.dockerimage.outputs.dockerimage }} | |
| enablecontainerscanning: ${{ steps.enablecontainerscanning.outputs.enablecontainerscanning }} |
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
| ghe-console -y <<'ENDSCRIPT' | |
| ActiveRecord::Base.connected_to(role: :reading) do | |
| puts "Version 0.2.0" | |
| emails = Set.new | |
| start_time = 90.days.ago.beginning_of_day | |
| Repository.where(active: true).find_each do |repo| | |
| Push | |
| .where(repository: repo) | |
| .where("created_at >= ?", start_time) | |
| .find_each do |push| |