Skip to content

chore: add copyright headers to shell scripts #304

@WilliamBerryiii

Description

@WilliamBerryiii

Description

Add copyright and SPDX license headers to all shell scripts (.sh files) in the repository. This is a quick task with only 5 files, ideal for a new contributor to familiarize themselves with the codebase structure.

Acceptance Criteria

  • Add headers to all 5 shell scripts listed below
  • Headers placed immediately after the shebang line
  • Scripts remain executable and functional
  • No syntax errors introduced

File List

File Path Location
.devcontainer/scripts/on-create.sh DevContainer setup
.devcontainer/scripts/post-create.sh DevContainer setup
.github/skills/video-to-gif/scripts/convert.sh Skills
scripts/dev-tools/pr-ref-gen.sh Dev tools
scripts/tests/Fixtures/Security/insecure-download.sh Test fixtures

Implementation Steps

  1. For each file, insert the following header after the shebang line:

    #!/bin/bash
    # Copyright (c) Microsoft Corporation.
    # SPDX-License-Identifier: MIT
  2. If a file has no shebang, add both the shebang and the header

  3. Verify scripts remain valid:

    bash -n scripts/dev-tools/pr-ref-gen.sh

Example Before

#!/bin/bash
set -euo pipefail
# Script content...

Example After

#!/bin/bash
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: MIT

set -euo pipefail
# Script content...

Time Estimate

30 minutes

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions