Skip to content

license: add Apache 2.0 headers and NOTICE file for open sourcing#240

Merged
derekmisler merged 7 commits into
docker:mainfrom
derekmisler:fix/apache-licensing
Jun 12, 2026
Merged

license: add Apache 2.0 headers and NOTICE file for open sourcing#240
derekmisler merged 7 commits into
docker:mainfrom
derekmisler:fix/apache-licensing

Conversation

@derekmisler

@derekmisler derekmisler commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Prepares the repo for open sourcing by fixing Apache 2.0 licensing artifacts.

Changes

  • LICENSE: replaced with canonical Apache 2.0 text from https://www.apache.org/licenses/LICENSE-2.0.txt. The APPENDIX section (guidance text with unfilled template placeholders) is omitted — LICENSE ends at "END OF TERMS AND CONDITIONS", which is standard practice.
  • NOTICE: new file with Copyright (c) Docker, Inc. attribution per Apache 2.0 guidelines.
  • SPDX headers: short-form 2-line copyright header added to all source files (54 TypeScript files in src/, 6 YAML action files, 9 workflow YAMLs, 3 shell scripts):
    // Copyright (c) Docker, Inc.
    // SPDX-License-Identifier: Apache-2.0
    
    #-style comments used for YAML and shell files; shebang lines preserved first.
  • Execute bits: restored on scripts/act-local.sh, tests/test-job-summary.sh, tests/test-output-extraction.sh.

dist/, JSON, markdown, and other non-source files are unchanged.

- Replace LICENSE file with verbatim Apache 2.0 text from apache.org
  (removes the appended copyright notice that was at line 179)
- Add NOTICE file per Apache 2.0 guidelines
- Add Apache 2.0 copyright header to all TypeScript source files in src/
- Add Apache 2.0 copyright header to all YAML action files
- Add Apache 2.0 copyright header to all GitHub workflow YAML files
- Add Apache 2.0 copyright header to all shell scripts in scripts/ and tests/

No generated files (dist/) or non-source files were modified.
@derekmisler
derekmisler marked this pull request as ready for review June 11, 2026 19:09
Using the NOTICE file approach per Apache 2.0 guidelines instead of
adding per-file headers to every source file. Also restores execute
bit on scripts/act-local.sh, tests/test-job-summary.sh, and
tests/test-output-extraction.sh which was accidentally dropped.
docker-agent

This comment was marked as outdated.

Add short-form SPDX copyright headers to every source file:
- TypeScript files in src/: // comment style
- YAML action and workflow files: # comment style
- Shell scripts: # comment style, after shebang line

Header format:
  // Copyright (c) Docker, Inc.
  // SPDX-License-Identifier: Apache-2.0

dist/, JSON, markdown, and other non-source files are unchanged.
@derekmisler
derekmisler enabled auto-merge (squash) June 11, 2026 19:52

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall LGTM

left a comment; probably may need a double check on the copyright holder; also to have the headers and notice match

Comment thread tests/test-job-summary.sh
@@ -1,4 +1,8 @@
#!/bin/bash

# Copyright (c) Docker, Inc.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth checking what this should be; "Docker, Inc." or "The Docker Agent Action Authors" (or both)

Comment thread LICENSE
- Remove the APPENDIX section (lines 178-202) from LICENSE. The APPENDIX
  is guidance text showing how to apply the license to your own works; it
  is not part of the Apache 2.0 license grant itself, and leaving the
  unfilled '[yyyy] [name of copyright owner]' placeholder confuses OSS
  compliance tooling. LICENSE now ends at 'END OF TERMS AND CONDITIONS'.
- Update NOTICE copyright line to 'Copyright (c) Docker, Inc.' to align
  with the SPDX headers added to source files.
@derekmisler

Copy link
Copy Markdown
Contributor Author

Addressed the review feedback in f4ae445:

LICENSE APPENDIX (docker-agent's HIGH finding): Removed the entire APPENDIX section — LICENSE now ends at "END OF TERMS AND CONDITIONS". The APPENDIX is guidance text showing how to apply the license to your own works, not part of the license grant itself. Stripping it eliminates the unfilled [yyyy] [name of copyright owner] placeholder that was confusing compliance tooling.

Textual deviations (docker-agent's MEDIUM finding): thaJeztah confirmed these lines match the canonical apache.org text — "the" is not in the upstream file. No change needed there.

Copyright holder alignment (thaJeztah's comment): Updated NOTICE from The Docker Agent Action Authors to Copyright (c) Docker, Inc. to match the SPDX headers in source files.

derekmisler and others added 3 commits June 11, 2026 21:54
The previous commit restored the full verbatim Apache 2.0 text including
the APPENDIX, but that contradicts the PR's stated goal: the unfilled
'[yyyy] [name of copyright owner]' placeholder confuses OSS compliance
tooling. LICENSE now ends at 'END OF TERMS AND CONDITIONS' as described.
@derekmisler
derekmisler merged commit 360d918 into docker:main Jun 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants