Secrets in GitHub Actions
Në shqip: Sekretet në GitHub Actions
ShpjegimiSQ
Çelësat dhe fjalëkalimet për CI ruhen te Settings → Secrets dhe përdoren në workflow si ${{ secrets.EMRI }}. GitHub i fsheh në log-e dhe s'ua jep PR-ve nga fork-e të huaja.
EnglishEN
Keys and passwords for CI are stored under Settings → Secrets and used in workflows as ${{ secrets.NAME }}. GitHub hides them in logs and doesn't expose them to PRs from outside forks.
Si ta mendosh
Si një kasafortë që e hap vetëm roboti i ndërtimit.
Lexoje në anglisht
Like a safe only the build robot can open.
Shembull kodiyaml
- run: npm run deploy
env:
API_KEY: ${{ secrets.API_KEY }}