Skip to content

merchstack/set-action-dependabot-secret

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Set Secret Action

Create or edit actions secrets in repository or organizations

Forked from hmanzur/actions-set-secret in order to add support for setting Dependabot secrets.

Usage

Inputs

name

Required String Secret name.

value

Required String Secret value to store.

token

Required String Repository Access token

repository

Required String Repository or organization to store. Default github.repository context

org

Boolean Indicates the repo is an organization. Default false

dependabot

Boolean Indicates that secrets should also be persisted as Dependabot secrets. Default false

visibility

String that configures the access that repositories have to the organization secret. Options are all, private, selected

selected_repository_ids

Outputs

status

Response status code

data

Response json payload

Examples

For personal repo

uses: merchstack/set-action-dependabot-secret@v/2.1.3
with:
  name: 'MY_SECRET_NAME'
  value: 'Lorem ipsun dolor simit'
  repository: hmanzur/actions-set-secret
  token: ${{ secrets.REPO_ACCESS_TOKEN }}

For organizations

uses: merchstack/set-action-dependabot-secret@v/2.1.3
with:
  name: 'MY_SECRET_NAME'
  value: 'Lorem ipsun dolor simit'
  repository: 'my-org'
  token: ${{ secrets.REPO_ACCESS_TOKEN }}
  org: true
  visibility: 'all'

References

References for repository

References for organization

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •