DealDocumentScreening/deploy/nomad/policies/ci.hcl
febux c64f8ac3b7
Some checks are pending
ci / test (push) Waiting to run
Forgejo workflows were added. Nomad config was created.
2026-09-13 22:09:10 +03:00

21 lines
696 B
HCL

# ACL policy for the Forgejo Actions deploy token.
#
# Scopes: read the default namespace (job list / deployment status polling),
# full control over the contract-check job only. The token cannot touch
# agents, other jobs, or Nomad Variables (set via the management token).
#
# Apply with the management token (README §4):
# nomad acl policy apply -description "Forgejo CI deploy" ci \
# deploy/nomad/policies/ci.hcl
#
# If `nomad job run` from CI ever fails with permission errors during
# deployment evaluation, fall back to namespace-wide write:
# namespace "default" { policy = "write" }
namespace "default" {
policy = "read"
job "contract-check" {
policy = "write"
}
}