facebookincubator / TTPForge

The TTPForge is a Cybersecurity Framework for developing, automating, and executing attacker Tactics, Techniques, and Procedures (TTPs).
MIT License
337 stars 33 forks source link

Fix Open Source Copyright Headers #507

Closed d0n601 closed 3 months ago

d0n601 commented 3 months ago

Summary: The open source automated repository checkup has been flagging certain files as needing a copyright header.

I've excluded the go.mod and go.sum file, and added the other headers where appropriate as per this test: https://www.internalfb.com/phabricator/paste/view/P1510438766

Fixes the following:

COPYRIGHT_HEADERS_EXIST: Copyright Headers
****************************************
FIX IT! https://our.intern.facebook.com/intern/opensource/github/repo/1770409709999349/repo_settings/header_exemptions/
Every project specific source file must contain a doc block with an appropriate copyright header. Unrelated files must be listed as exceptions in the Copyright Headers Exceptions page in the repo dashboard.
A copyright header clearly indicates that the code is owned by Meta. Every open source file must start with a comment containing "Meta Platforms, Inc. and affiliates"
https://github.com/facebookincubator/TTPForge/blob/main/go.mod:
The first 16 lines of 'go.mod' do not contain the patterns:
    (Meta Platforms, Inc. and affiliates)|(Facebook, Inc(\.|,)? and its affiliates)|([0-9]{4}-present(\.|,)? Facebook)|([0-9]{4}(\.|,)? Facebook)
    Copyright
https://github.com/facebookincubator/TTPForge/blob/main/go.sum:
The first 16 lines of 'go.sum' do not contain the patterns:
    (Meta Platforms, Inc. and affiliates)|(Facebook, Inc(\.|,)? and its affiliates)|([0-9]{4}-present(\.|,)? Facebook)|([0-9]{4}(\.|,)? Facebook)
    Copyright
https://github.com/facebookincubator/TTPForge/blob/main/integration-tests.sh:
The first 16 lines of 'integration-tests.sh' do not contain the patterns:
    (Meta Platforms, Inc. and affiliates)|(Facebook, Inc(\.|,)? and its affiliates)|([0-9]{4}-present(\.|,)? Facebook)|([0-9]{4}(\.|,)? Facebook)
    Copyright
https://github.com/facebookincubator/TTPForge/blob/main/run-all-ttp-tests.sh:
The first 16 lines of 'run-all-ttp-tests.sh' do not contain the patterns:
    (Meta Platforms, Inc. and affiliates)|(Facebook, Inc(\.|,)? and its affiliates)|([0-9]{4}-present(\.|,)? Facebook)|([0-9]{4}(\.|,)? Facebook)
    Copyright
https://github.com/facebookincubator/TTPForge/blob/main/cmd/test-resources/repos/another-repo/some-ttps/cleanup-tests/test.sh:
The first 16 lines of 'cmd/test-resources/repos/another-repo/some-ttps/cleanup-tests/test.sh' do not contain the patterns:
    (Meta Platforms, Inc. and affiliates)|(Facebook, Inc(\.|,)? and its affiliates)|([0-9]{4}-present(\.|,)? Facebook)|([0-9]{4}(\.|,)? Facebook)
    Copyright
https://github.com/facebookincubator/TTPForge/blob/main/cmd/test-resources/repos/test-repo/ttps/steps/hello-world.sh:
The first 16 lines of 'cmd/test-resources/repos/test-repo/ttps/steps/hello-world.sh' do not contain the patterns:
    (Meta Platforms, Inc. and affiliates)|(Facebook, Inc(\.|,)? and its affiliates)|([0-9]{4}-present(\.|,)? Facebook)|([0-9]{4}(\.|,)? Facebook)
    Copyright

Differential Revision: D60686691

facebook-github-bot commented 3 months ago

This pull request was exported from Phabricator. Differential Revision: D60686691

facebook-github-bot commented 3 months ago

This pull request has been merged in facebookincubator/TTPForge@62a1e9dd9c9f539e9d2f1ba1036d9cc7bd6defc6.