An open API service indexing awesome lists of open source software.

https://github.com/instacode/lockdown

A github action that restricts build execution to specific users
https://github.com/instacode/lockdown

actions continuous-integration security

Last synced: 2 months ago
JSON representation

A github action that restricts build execution to specific users

Awesome Lists containing this project

README

          

# Lockdown CI Security

![build-test](https://github.com/InstaCode/lockdown/workflows/build-test/badge.svg)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=InstaCode_lockdown&metric=alert_status)](https://sonarcloud.io/dashboard?id=InstaCode_lockdown)

This GitHub action restricts the build from continuing to execution unless the author of the commit/pull request is among a list of approved users.

Example: Only repo owner can execute builds. Orgs and teams not supported yet.
```yaml
- uses: InstaCode/lockdown@v1.1
```

Example: Repo Owner is assumed permitted with one additional user.
```yaml
- uses: InstaCode/lockdown@v1.1
with:
users: dependabot-preview
```

Example: Repo Owner is held to strict rules and must be listed in
```yaml
- uses: InstaCode/lockdown@v1.1
with:
users: fake-user, dependabot-preview
strict: true
```

The `users` property accepts a comma delimited list of valid github usernames that will be trimmed during processing.