Skip to content

punitkashyup/action-secrets-update

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

Update Secret Action

A GitHub Action to easily update a secret in your repository using strong encryption.

Features

  • Securely update secrets in your GitHub repository.
  • Uses PyNaCl for encryption.
  • Straightforward setup and usage.

Usage

name: Update Secret

on:
  push:
    branches:
      - main

jobs:
  update_secret:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v2

    - name: Update Secret
      uses: punitkashyup/update-secret-action@v1
      with:
        repository_owner: ${{ secrets.REPOSITORY_OWNER }}
        repository_name: ${{ secrets.REPOSITORY_NAME }}
        secret_name: ${{ secrets.SECRET_NAME }}
        new_secret_value: ${{ secrets.NEW_SECRET_VALUE }}
        github_token: ${{ secrets.GITHUB_TOKEN }}