secrets-and-variables

Manage GitHub Actions secrets and variables at repository and organization levels.

4|4|Updated Dec 30, 2024
One-click install
npx skills add https://github.com/purduehackers/wack-hacker --skill secrets-and-variables
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-and-variables
Source: https://github.com/purduehackers/wack-hacker/tree/main/src/lib/ai/agents/github/prompts/skills/secrets-and-variables
Command: npx skills add https://github.com/purduehackers/wack-hacker --skill secrets-and-variables

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the management of sensitive secrets and non-sensitive variables for GitHub Actions, ensuring secure and efficient CI/CD pipelines.

Core Features & Use Cases

  • Secret Management: Create, view (names only), update, and delete repository and organization-level secrets.
  • Variable Management: Create, view, update, and delete repository and organization-level variables.
  • Scope Control: Manage visibility scopes for organization secrets and variables (all, private, selected).
  • Use Case: Securely store your GitHub API token as a repository secret, or define a common deployment environment name as an organization variable accessible by multiple repositories.

Quick Start

Use the secrets-and-variables skill to create a new repository secret named 'MY_API_KEY' with the value 'your_super_secret_value'.

Frequently Asked Questions about secrets-and-variables

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage GitHub Actions secrets across my repository and organization?

You can manage GitHub Actions secrets at both repository and organization levels by listing, creating, updating, and deleting sensitive credentials to secure your CI/CD pipelines. This centralizes secure storage and retrieval for your automated workflows.

Can I restrict organization secrets visibility to specific repositories?

Yes, you can configure visibility scopes for organization secrets and variables. Scopes can be set to all repositories, private repositories only, or a selected list of repositories, ensuring precise access control for your configuration parameters.

What is the difference between GitHub Actions secrets and variables for CI/CD configuration?

Secrets securely store sensitive credentials like API tokens and are only viewable by name, while variables store non-sensitive configuration parameters like deployment environment names that can be openly read by your automated workflows.

How do I create a new repository secret for my GitHub Actions workflow?

To create a repository secret, you initiate a creation operation targeting your specific repository and provide the secret name and its corresponding value. This securely encrypts and stores the credential for your automated workflows to use.

Does this approach work for sharing a common deployment environment name across multiple repositories?

Yes, you can define a common deployment environment name as an organization variable. This makes the non-sensitive configuration parameter accessible to multiple repositories under your organization, streamlining your CI/CD configuration.

Why should I not hardcode sensitive credentials directly in my GitHub Actions workflows?

Hardcoding sensitive credentials bypasses secure storage and retrieval mechanisms, exposing them in your workflow files. Instead, you should create and reference repository or organization secrets to ensure secure CI/CD pipelines.