Skip to content

Commit 406d053

Browse files
authored
chore: add GitHub Actions workflow check for copyright header and fix missing copyright headers (#341)
* chore: add workflow to check for copyright notices * chore: add missing copyright notices
1 parent 9c2f26c commit 406d053

File tree

24 files changed

+93
-15
lines changed

24 files changed

+93
-15
lines changed

.github/not-grep.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[include]
2+
# Use "include" rather than "prefix" because
3+
# some CLI entry point files have shebang lines
4+
# that need to come first.
5+
"**/*.ts" = """
6+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
7+
// SPDX-License-Identifier: Apache-2.0
8+
"""
9+
"**/package.json" = "\"license\": \"Apache-2.0\""
10+
"**/*.sh" = """
11+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
12+
# SPDX-License-Identifier: Apache-2.0
13+
"""
14+
[prefix]
15+
# Exclude the copies of msrcrypto included in examples packages.
16+
"**/[!msrcrypto]*.js" = """
17+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
18+
// SPDX-License-Identifier: Apache-2.0
19+
"""
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This workflow performs static analysis checks.
2+
name: static analysis
3+
4+
on: ["pull_request", "push"]
5+
6+
jobs:
7+
not-grep:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: not-grep
12+
uses: mattsb42-meta/not-grep@1.0.0

karma.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
// Karma configuration
25

36
module.exports = function (config) {

modules/caching-materials-manager-browser/karma.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
// Karma configuration
25

36
module.exports = function (config) {

modules/decrypt-browser/karma.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
// Karma configuration
25

36
module.exports = function (config) {

modules/encrypt-browser/karma.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
// Karma configuration
25

36
module.exports = function (config) {

modules/encrypt-node/src/encrypt.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
import {
25
KeyringNode,
36
NodeMaterialsManager,

modules/example-browser/karma.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
const webpack = require('webpack')
25
const {defaultProvider} = require('@aws-sdk/credential-provider-node')
36

modules/example-browser/webpack_configs/aes.webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
const path = require('path')
25

36
module.exports = {

modules/example-browser/webpack_configs/caching_cmm.webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
const webpack = require('webpack')
25
const path = require('path')
36
const {defaultProvider} = require('@aws-sdk/credential-provider-node')

0 commit comments

Comments
 (0)