Include SPDX-License-Identifier: License-Code in a comment near the top of the file.
SPDX-License-Identifier: License-Code
For exampe:
/* SPDX-License-Identifier: MIT */
or:
# SPDX-License-Identifier: BSD-2-Clause