Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

alphagov/verify-github-concourse-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

verify-github-concourse-resource

GOV.UK Verify has closed

This repository is out of date and has been archived

GitHub resource for Concourse that enforces a minimum number of GitHub approvals. This relies heavily on the Concourse git-resource.

This has been taken from the now archived GSP repository and updated. It's heavily used in Verify and needs maintaining.

Source configuration

All the required configuration for the Concourse git-resource will be required along with:

  • organization Required. The GitHub organization the repo is in.
  • repository Required. The repository name.
  • github_api_token Required. A GitHub API token.
  • approversRequired. A list GitHub usernames of approvers.
  • required_approval_count Required. The minimum number of approvals required to proceed.

Run tests

Update the value for github_api_token in test.json to an actual token. Then run:

rm -rf tmp && cat test.json | docker run -v $PWD/tmp:/mnt/myapp -i $(docker build -q .) /opt/resource/in /mnt/myapp

About

Verify GitHub Concourse resource

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published