{
  "id": "PB-CI-001",
  "classification": "Owned workflow configuration hardening; no credential leak demonstrated",
  "affectedSource": "4c7b21ba31e8410d80fe1965a3cce93e07061939",
  "method": "Parse actual workflow YAML and evaluate bounded synthetic event conditions; never resolve or transmit real secrets",
  "hashEncoding": "UTF-8 with LF line endings",
  "beforeWorkflowSha256": "d3f6d8c92d9ad106d8d8672b28e64c14bfcc41bce23e00d59d1208eaa5afeec9",
  "afterWorkflowSha256": "1ad29b7f391888f8a2717aaec3b20c45abbf9bad28aedeb6c6a2a56c72786618",
  "fixtures": [
    {
      "event": "pull_request",
      "action": "opened",
      "fork": false,
      "beforeReferences": 1,
      "afterReferences": 0
    },
    {
      "event": "pull_request",
      "action": "opened",
      "fork": true,
      "beforeReferences": 1,
      "afterReferences": 0
    },
    {
      "event": "pull_request",
      "action": "synchronize",
      "fork": false,
      "beforeReferences": 1,
      "afterReferences": 0
    },
    {
      "event": "pull_request",
      "action": "synchronize",
      "fork": true,
      "beforeReferences": 1,
      "afterReferences": 0
    },
    {
      "event": "pull_request",
      "action": "reopened",
      "fork": false,
      "beforeReferences": 1,
      "afterReferences": 0
    },
    {
      "event": "pull_request",
      "action": "reopened",
      "fork": true,
      "beforeReferences": 1,
      "afterReferences": 0
    },
    {
      "event": "pull_request",
      "action": "closed",
      "fork": false,
      "beforeReferences": 1,
      "afterReferences": 0
    },
    {
      "event": "pull_request",
      "action": "closed",
      "fork": true,
      "beforeReferences": 1,
      "afterReferences": 0
    }
  ],
  "checkedMainPushUploads": 1,
  "repair": [
    "Secret-free PR validation",
    "Separate fresh hosted runner for the checked exact main push",
    "Read-only GitHub token permissions and no persisted checkout credentials",
    "Fresh upload-input scan",
    "No automatic PR preview uploads or cleanup credential"
  ],
  "limits": [
    "References do not prove actual secret availability; normal fork PRs do not receive repository secrets",
    "Azure PR uploads normally create preview environments; no production overwrite was established",
    "Repository writers remain trusted and can modify workflows/access repository-scoped secrets",
    "This code change does not configure provider-enforced environment or branch protections",
    "Existing remote preview environments were not enumerated or removed"
  ],
  "recommendations": [
    "Use environment-scoped deployment secrets and an explicitly selected main branch where the repository plan supports it",
    "Remove broader secret copies only after verifying a replacement publishing path",
    "For stronger writer isolation, use a separately controlled publishing system",
    "Keep validation and production credentials on separate runners"
  ],
  "sources": [
    "https://learn.microsoft.com/en-us/azure/static-web-apps/preview-environments",
    "https://learn.microsoft.com/en-us/azure/static-web-apps/deployment-token-management",
    "https://docs.github.com/en/actions/reference/security/secure-use",
    "https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments"
  ],
  "checkedAt": "2026-11-15T23:31:08.423Z"
}
