File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <!-- SPDX-License-Identifier: PMPL-1.0 -->
1+ <!-- SPDX-License-Identifier: PMPL-1.0-or-later -->
22# Contributor Covenant Code of Conduct
33
44## Our Pledge
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: PMPL-1.0
1+ # SPDX-License-Identifier: PMPL-1.0-or-later
22# Mustfile - hyperpolymath mandatory checks
33# See: https://github.com/hyperpolymath/mustfile
44
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # SPDX-License-Identifier: PMPL-1.0
2+ # SPDX-License-Identifier: PMPL-1.0-or-later
33# Pre-commit hook: Validate CodeQL language matrix matches repo
44set -euo pipefail
55
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # SPDX-License-Identifier: PMPL-1.0
2+ # SPDX-License-Identifier: PMPL-1.0-or-later
33# Pre-commit hook: Validate workflow permissions declarations
44set -euo pipefail
55ERRORS=0
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # SPDX-License-Identifier: PMPL-1.0
2+ # SPDX-License-Identifier: PMPL-1.0-or-later
33# Pre-commit hook: Validate GitHub Actions are SHA-pinned
44
55set -euo pipefail
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # SPDX-License-Identifier: PMPL-1.0
2+ # SPDX-License-Identifier: PMPL-1.0-or-later
33# Pre-commit hook: Validate SPDX headers in workflow files
44
55set -euo pipefail
66
77ERRORS=0
8- SPDX_PATTERN=" ^# SPDX-License-Identifier:PMPL-1.0
8+ SPDX_PATTERN=" ^# SPDX-License-Identifier:PMPL-1.0-or-later
99
1010for workflow in .github/workflows/*.yml .github/workflows/*.yaml; do
1111 [ -f " $workflow " ] || continue
1212
1313 first_line=$( head -n1 " $workflow " )
1414 if ! echo " $first_line " | grep -qE " $SPDX_PATTERN " ; then
1515 echo " ERROR: Missing SPDX header in $workflow "
16- echo " First line should be: # SPDX-License-Identifier: PMPL-1.0
16+ echo " First line should be: # SPDX-License-Identifier: PMPL-1.0-or-later
1717 ERRORS=$(( ERRORS + 1 ))
1818 fi
1919done
You can’t perform that action at this time.
0 commit comments