|
| 1 | +{ |
| 2 | + "_meta": { |
| 3 | + "name": "ci", |
| 4 | + "summary": "CI runner profile — for use inside GitHub Actions / GitLab CI. Permissive on language toolchains + git diagnostics; STRICTER deny than project profiles on anything that could mutate remote state outside the controlled CI flow.", |
| 5 | + "scope_hint": "ci", |
| 6 | + "extends": ["global"] |
| 7 | + }, |
| 8 | + "permissions": { |
| 9 | + "allow": [ |
| 10 | + "Edit", |
| 11 | + "Write", |
| 12 | + "MultiEdit", |
| 13 | + |
| 14 | + "Bash(git add:*)", |
| 15 | + "Bash(git commit:*)", |
| 16 | + "Bash(git checkout:*)", |
| 17 | + "Bash(git switch:*)", |
| 18 | + "Bash(git restore:*)", |
| 19 | + "Bash(git pull:*)", |
| 20 | + "Bash(git merge:*)", |
| 21 | + "Bash(git rebase:*)", |
| 22 | + "Bash(git stash:*)", |
| 23 | + "Bash(git mv:*)", |
| 24 | + "Bash(git rm:*)", |
| 25 | + "Bash(git tag:*)", |
| 26 | + "Bash(git config user.*)", |
| 27 | + |
| 28 | + "Bash(gh pr view:*)", |
| 29 | + "Bash(gh pr checks:*)", |
| 30 | + "Bash(gh run view:*)", |
| 31 | + "Bash(gh api:*)", |
| 32 | + "Bash(gh release upload:*)", |
| 33 | + "Bash(gh release view:*)", |
| 34 | + |
| 35 | + "Bash(python:*)", |
| 36 | + "Bash(python3:*)", |
| 37 | + "Bash(pip:*)", |
| 38 | + "Bash(uv:*)", |
| 39 | + "Bash(pytest:*)", |
| 40 | + "Bash(coverage:*)", |
| 41 | + "Bash(ruff:*)", |
| 42 | + "Bash(mypy:*)", |
| 43 | + "Bash(pip-audit:*)", |
| 44 | + "Bash(python -m:*)", |
| 45 | + |
| 46 | + "Bash(php:*)", |
| 47 | + "Bash(composer:*)", |
| 48 | + "Bash(./vendor/bin/*:*)", |
| 49 | + "Bash(vendor/bin/*:*)", |
| 50 | + |
| 51 | + "Bash(npm:*)", |
| 52 | + "Bash(npm ci:*)", |
| 53 | + "Bash(npx:*)", |
| 54 | + "Bash(pnpm:*)", |
| 55 | + "Bash(yarn:*)", |
| 56 | + "Bash(node:*)", |
| 57 | + "Bash(tsc:*)", |
| 58 | + "Bash(eslint:*)", |
| 59 | + "Bash(prettier:*)", |
| 60 | + "Bash(vitest:*)", |
| 61 | + "Bash(jest:*)", |
| 62 | + |
| 63 | + "Bash(go:*)", |
| 64 | + "Bash(gofmt:*)", |
| 65 | + "Bash(goimports:*)", |
| 66 | + "Bash(golangci-lint:*)", |
| 67 | + "Bash(govulncheck:*)", |
| 68 | + |
| 69 | + "Bash(cargo:*)", |
| 70 | + "Bash(rustc:*)", |
| 71 | + "Bash(rustfmt:*)", |
| 72 | + "Bash(clippy-driver:*)", |
| 73 | + "Bash(cargo-audit:*)", |
| 74 | + |
| 75 | + "Bash(make:*)", |
| 76 | + "Bash(./scripts/*:*)", |
| 77 | + "Bash(bash scripts/*:*)", |
| 78 | + "Bash(sh scripts/*:*)", |
| 79 | + |
| 80 | + "Bash(pre-commit:*)", |
| 81 | + "Bash(shellcheck:*)", |
| 82 | + "Bash(shfmt:*)", |
| 83 | + "Bash(detect-secrets:*)", |
| 84 | + "Bash(gitleaks:*)", |
| 85 | + "Bash(actionlint:*)", |
| 86 | + "Bash(yamllint:*)", |
| 87 | + "Bash(hadolint:*)", |
| 88 | + "Bash(markdownlint:*)", |
| 89 | + "Bash(lychee:*)", |
| 90 | + |
| 91 | + "Bash(docker build:*)", |
| 92 | + "Bash(docker pull:*)", |
| 93 | + "Bash(docker tag:*)", |
| 94 | + "Bash(docker compose config:*)", |
| 95 | + |
| 96 | + "Bash(cp:*)", |
| 97 | + "Bash(mv:*)", |
| 98 | + "Bash(ln:*)", |
| 99 | + "Bash(chmod:*)", |
| 100 | + "Bash(tar:*)", |
| 101 | + "Bash(unzip:*)", |
| 102 | + "Bash(zip:*)", |
| 103 | + "Bash(gzip:*)" |
| 104 | + ], |
| 105 | + "deny": [ |
| 106 | + "Bash(rm -rf .git:*)", |
| 107 | + "Bash(rm -rf .git)", |
| 108 | + |
| 109 | + "Bash(git push:* --force)", |
| 110 | + "Bash(git push:* -f)", |
| 111 | + "Bash(git push -f:*)", |
| 112 | + "Bash(git push --force:*)", |
| 113 | + "Bash(git push:* --force-with-lease)", |
| 114 | + "Bash(git reset --hard:*)", |
| 115 | + "Bash(git clean -fdx:*)", |
| 116 | + "Bash(git tag -d:*)", |
| 117 | + "Bash(git push:* --delete:*)", |
| 118 | + |
| 119 | + "Bash(gh pr create:*)", |
| 120 | + "Bash(gh pr merge:*)", |
| 121 | + "Bash(gh release create:*)", |
| 122 | + "Bash(gh release delete:*)", |
| 123 | + "Bash(gh repo create:*)", |
| 124 | + "Bash(gh repo edit:*)", |
| 125 | + "Bash(gh repo delete:*)", |
| 126 | + "Bash(gh workflow run:*)", |
| 127 | + "Bash(gh secret:*)", |
| 128 | + "Bash(gh variable:*)", |
| 129 | + |
| 130 | + "Bash(twine upload:*)", |
| 131 | + "Bash(python -m twine upload:*)", |
| 132 | + "Bash(uv publish:*)", |
| 133 | + "Bash(poetry publish:*)", |
| 134 | + "Bash(hatch publish:*)", |
| 135 | + "Bash(pdm publish:*)", |
| 136 | + "Bash(npm publish:*)", |
| 137 | + "Bash(pnpm publish:*)", |
| 138 | + "Bash(yarn publish:*)", |
| 139 | + "Bash(bun publish:*)", |
| 140 | + "Bash(cargo publish:*)", |
| 141 | + "Bash(gem push:*)", |
| 142 | + "Bash(composer publish:*)", |
| 143 | + "Bash(docker push:*)", |
| 144 | + "Bash(goreleaser publish:*)", |
| 145 | + "Bash(goreleaser release:*)", |
| 146 | + |
| 147 | + "Bash(php artisan migrate:fresh:*)", |
| 148 | + "Bash(php artisan migrate:reset:*)", |
| 149 | + "Bash(php artisan db:wipe:*)" |
| 150 | + ] |
| 151 | + } |
| 152 | +} |
0 commit comments