Skip to main content

secrets-management

GitHub secrets and environment variables for MCP servers and CI/CD workflows

소스 정보

저장소
Hack23/riksdagsmonitor
최근 소스 활동
2026년 4월 16일 09:31
감지된 SKILL.md 언어
영어
스타
13
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
secrets-management
description
GitHub secrets and environment variables for MCP servers and CI/CD workflows
license
Apache-2.0
# Secrets Management ## 🔴 AI FIRST Quality Principle > **Apply the AI FIRST principle: never accept first-pass quality. Minimum 2 iterations. Read all output, improve every section. No shortcuts.** ## Purpose Secure management of GitHub secrets for MCP servers and CI/CD workflows. ## GitHub Secrets Configuration ### Repository Secrets ```yaml # Settings → Secrets and variables → Actions → Repository secrets COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN - Description: GitHub PAT for MCP server with Insiders API - Scopes: repo, read:org, read:user - Expiration: 90 days (renewal required) ``` ### Environment Secrets ```yaml # Settings → Environments → copilot → Environment secrets COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN - Description: GitHub PAT for Copilot environment - Injected via: COPILOT_AGENT_INJECTED_SECRET_NAMES ``` ## Secret Usage in Workflows ### MCP Configuration ```json // .github/copilot-mcp.json { "mcpServers": { "github": { "env": { "GITHUB_TOKEN": "${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}", "GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }}" } } } } ``` ### Workflow Usage ```yaml # .github/workflows/copilot-setup-steps.yml env: GITHUB_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }} GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.COPILOT_MCP_GITHUB_PERSONAL_ACCESS_TOKEN }} ``` ## Security Best Practices - ✅ Never commit secrets to repository - ✅ Use GitHub secret scanning - ✅ Rotate secrets every 90 days - ✅ Minimal scope (least privilege) - ✅ Environment-specific secrets - ✅ Audit secret access logs ## References - **GitHub Secrets**: https://docs.github.com/en/actions/security-guides/encrypted-secrets - **Secret Scanning**: https://docs.github.com/en/code-security/secret-scanning - **SECURITY.md**: Security policy
GitHub에서 보기