Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
name: CodeQL Security Analysis

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
name: OSSF Scorecard
on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/secret-scanner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
# Prevention workflow - scans for hardcoded secrets before they reach main
name: Secret Scanner

Expand Down
2 changes: 1 addition & 1 deletion bgp-backbone-lab/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- SPDX-License-Identifier: PMPL-1.0 -->
<!-- SPDX-License-Identifier: PMPL-1.0-or-later -->
# Contributor Covenant Code of Conduct

## Our Pledge
Expand Down
2 changes: 1 addition & 1 deletion bgp-backbone-lab/Mustfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
# Mustfile - hyperpolymath mandatory checks
# See: https://github.com/hyperpolymath/mustfile

Expand Down
2 changes: 1 addition & 1 deletion bgp-backbone-lab/hooks/validate-codeql.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
# Pre-commit hook: Validate CodeQL language matrix matches repo
set -euo pipefail

Expand Down
2 changes: 1 addition & 1 deletion bgp-backbone-lab/hooks/validate-permissions.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
# Pre-commit hook: Validate workflow permissions declarations
set -euo pipefail
ERRORS=0
Expand Down
2 changes: 1 addition & 1 deletion bgp-backbone-lab/hooks/validate-sha-pins.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
# Pre-commit hook: Validate GitHub Actions are SHA-pinned

set -euo pipefail
Expand Down
6 changes: 3 additions & 3 deletions bgp-backbone-lab/hooks/validate-spdx.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: PMPL-1.0
# SPDX-License-Identifier: PMPL-1.0-or-later
# Pre-commit hook: Validate SPDX headers in workflow files

set -euo pipefail

ERRORS=0
SPDX_PATTERN="^# SPDX-License-Identifier:PMPL-1.0
SPDX_PATTERN="^# SPDX-License-Identifier:PMPL-1.0-or-later

for workflow in .github/workflows/*.yml .github/workflows/*.yaml; do
[ -f "$workflow" ] || continue

first_line=$(head -n1 "$workflow")
if ! echo "$first_line" | grep -qE "$SPDX_PATTERN"; then
echo "ERROR: Missing SPDX header in $workflow"
echo " First line should be: # SPDX-License-Identifier: PMPL-1.0
echo " First line should be: # SPDX-License-Identifier: PMPL-1.0-or-later
ERRORS=$((ERRORS + 1))
fi
done
Expand Down
Loading