From 9a46c7483923813d34b794e272483c7b0e2f0721 Mon Sep 17 00:00:00 2001 From: Matthew Lorimor Date: Thu, 12 Nov 2026 22:54:30 -0600 Subject: [PATCH] audit-github-iac-drift: add the drift plan identity chainguard-dev/infra's audit-github-iac-drift.yaml plans every github-iac organization from main and reports a plan that is not empty. It has no apply step and writes no plan file. The scopes are the ones sync-github reads during a refresh, at read, except administration and organization_administration. GitHub returns ruleset bypass actors and repository merge settings only to a writer, so with read alone every plan would report them as drift. Co-Authored-By: Claude Opus 5.5 --- .../audit-github-iac-drift.sts.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/chainguard/audit-github-iac-drift.sts.yaml diff --git a/.github/chainguard/audit-github-iac-drift.sts.yaml b/.github/chainguard/audit-github-iac-drift.sts.yaml new file mode 100644 index 0000000..57376c2 --- /dev/null +++ b/.github/chainguard/audit-github-iac-drift.sts.yaml @@ -0,0 +1,20 @@ +# Copyright 2026 Chainguard, Inc. +# SPDX-License-Identifier: Apache-2.0 + +# Plans of github-iac that compare GitHub with its configuration, from +# chainguard-dev/infra's audit-github-iac-drift.yaml on main. That workflow has +# no apply step and writes no plan file. +issuer: https://token.actions.githubusercontent.com +subject: repo:chainguard-dev/infra:ref:refs/heads/main +claim_pattern: + job_workflow_ref: chainguard-dev/infra/.github/workflows/audit-github-iac-drift.yaml@refs/heads/main + +permissions: + administration: write # GitHub returns repository ruleset bypass actors and merge settings only to a writer + contents: read # what sync-github's refresh of each repository reads + members: read # teams and memberships + metadata: read # repository and organization metadata + organization_administration: write # GitHub returns organization ruleset bypass actors only to a writer + organization_custom_org_roles: read # custom organization roles + organization_custom_roles: read # custom repository roles +repositories: [] # Act over all of the repos in the org.