Compare commits
2 Commits
7ff7232585
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 31b06b4ab6 | |||
| 9c80b359f4 |
24
.cursor/rules/gitea-token.mdc
Normal file
24
.cursor/rules/gitea-token.mdc
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
description: Safe use of Gitea API token
|
||||||
|
globs:
|
||||||
|
alwaysApply: true
|
||||||
|
---
|
||||||
|
|
||||||
|
Rule: Gitea API token access and usage
|
||||||
|
|
||||||
|
Source of token:
|
||||||
|
- Environment variable `GITEA_TOKEN` must be set in the shell/session.
|
||||||
|
|
||||||
|
Security:
|
||||||
|
- Never print the token value to chat, logs, diffs, or console output.
|
||||||
|
- Do not hardcode the token.
|
||||||
|
- Do not store the token unencrypted on disk. Prefer environment variables or a secret manager.
|
||||||
|
|
||||||
|
Setup:
|
||||||
|
- Ensure `GITEA_TOKEN` is set before use (e.g., via secure secret manager or manual export without echoing the value).
|
||||||
|
|
||||||
|
HTTP:
|
||||||
|
- Add header: `Authorization: token $GITEA_TOKEN`.
|
||||||
|
|
||||||
|
CLI/Scripts:
|
||||||
|
- Pass `GITEA_TOKEN` to commands/scripts without printing its value.
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
check project_name project_url
|
check project_name project_url
|
||||||
|
X app ssh://git@git.aepif.ru:2222/aep/Mini-ERP-app.git
|
||||||
|
X second-mind ssh://git@git.aepif.ru:2222/aep/second-mind-aep.git
|
||||||
|
|||||||
|
Reference in New Issue
Block a user