Skip to content

github-technology-partners/protection-rules-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Deployment Protection Rules Playground

This repository serves as a demo for enabling deployment protection rules for target environments.

For demo purposes, be sure to follow the steps below:

Screenshot 2023-10-03 144008

GitHub Pages

To enable GitHub Pages for a repository, visit settings/pages

  1. Visit settings/pages
  2. Under "Build and deployment" choose GitHub Actions
  3. Settings are autosaved
Screenshot 2023-10-03 143704

Deploy

  1. Click the Actions tab
  2. Select "Deploy static content GitHub Pages" from the workflows list in the sidebar
  3. Click "Run workflow" from a target branch (typically main)

DPR Validator

For this demo, we have an application that will always approve an incoming request.

  1. Visit https://github.com/apps/dpr-validator
  2. Click install
  3. Choose the org you forked this repo into
  4. Select "Only select repositories"
  5. Choose the fork of this repo
Screenshot 2023-10-03 143839

Protection Rules

For demo purposes, be sure to configure the following:

  1. Visit settings/environments
  2. Select "github-pages"
  3. Enable "Required reviewers" and choose a user from your organization
  4. Enable a "Wait timer" with a time of 1 min
  5. Enable "DPR Validator"
  6. Enable your custom application
  7. Click "Save protection rules"
Screenshot 2023-10-03 143952

About

No description, website, or topics provided.

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors