Skip to content
shield

GitHub Action

Lockdown CI Security

v1.1 Latest version

Lockdown CI Security

shield

Lockdown CI Security

Restrict build runs to specific users

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Lockdown CI Security

uses: InstaCode/lockdown@v1.1

Learn more about this action in InstaCode/lockdown

Choose a version

Lockdown CI Security

build-test Quality Gate Status

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.

- uses: InstaCode/lockdown@v1.1

Example: Repo Owner is assumed permitted with one additional user.

- uses: InstaCode/lockdown@v1.1
  with:
    users: dependabot-preview

Example: Repo Owner is held to strict rules and must be listed in

- 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.