Skip to content

Commit be15d1f

Browse files
committed
chore: add SPDX-License-Identifier to all Go source files
Every .go file in cmd/ and internal/ (77 files) now carries // SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0 as its first line, per the PolyForm relicense (PR #21). CI contamination gate extended with an SPDX header check so new Go files without the header fail the gate. Mirrored in scripts/gates.sh for gate parity.
1 parent 45427af commit be15d1f

80 files changed

Lines changed: 170 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ jobs:
120120
exit 1
121121
fi
122122
echo "PASS: no stale brand strings"
123+
- name: SPDX header check
124+
run: |
125+
MISSING=$(find cmd/ internal/ -name '*.go' -exec sh -c \
126+
'head -1 "$1" | grep -qF "SPDX-License-Identifier:" || echo "$1"' _ {} \;)
127+
if [ -n "$MISSING" ]; then
128+
echo "FAIL: Go files missing SPDX-License-Identifier header:"
129+
echo "$MISSING"
130+
exit 1
131+
fi
132+
echo "PASS: all Go files have SPDX headers"
123133
124134
unit-tests:
125135
name: unit-tests

CHANGELOG.md

Lines changed: 5 additions & 0 deletions

cmd/awrit/apps.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
// Package main — awrit app subcommands for managing registered apps.
24
//
35
// Commands:

cmd/awrit/audit.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
// audit.go implements the awrit audit command group.
24
package main
35

cmd/awrit/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
package main
24

35
import (

cmd/awrit/init_cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
package main
24

35
import (

cmd/awrit/init_cmd_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
package main
24

35
import (

cmd/awrit/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
// Command awrit is the operator CLI for the AgentAuth broker.
24
package main
35

cmd/awrit/output.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
package main
24

35
import (

cmd/awrit/revoke.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: PolyForm-Internal-Use-1.0.0
2+
13
// Command awrit revoke subcommand — revokes tokens at various granularity levels.
24
package main
35

0 commit comments

Comments
 (0)