Skip to content

scaleway/action-scw-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

Scaleway Secret Manager GitHub Action

This action retrives secrets from Scaleway Secret Manager and inject them as environment variables.

Requirements

This github action uses the Scaleway SDK to perform calls against the Scaleway API. It needs a valid API key with the following rules:

  • SecretManagerReadOnly: to list secrets
  • SecretManagerSecretAccess: to access secret content

Inputs

secrets-names

Required One or more secret names to retrieve.

Format:

  • secret-name: Will fetch secret-name latest version and export its value to SECRET_NAME
  • MY_ENV_VAR,secret-name: Will fetch secret-name latest version and export its value to MY_ENV_VAR
  • /my/secret: Will fetch secret in the path /my with latest version and export its value to SECRET

access-key

Required Scaleway access key.

secret-key

Required Scaleway secret key.

default-project-id

Scaleway default project ID.

default-organization-id

Scaleway default organization ID.

default-region

Scaleway default region (default: fr-par).

default-zone

Scaleway default zone (default: fr-par-1).

Example usage

uses: scaleway/action-scw-secret@v0
with:
  secret-names: |
    my-secret
    MY_SECOND_SECRET,my-other-secret
  access-key: ${{ secrets.SCW_ACCESS_KEY }}
  secret-key: ${{ secrets.SCW_SECRET_KEY }}
  default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
  default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors