From fdd4861d11f119e92c0b65eb59849bf3448a4f3e Mon Sep 17 00:00:00 2001 From: "hashicorp-copywrite[bot]" <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 16:59:50 +0000 Subject: [PATCH] [COMPLIANCE] Add Copyright and License Headers (Batch 1 of 1) --- action.yml | 3 +++ docker-compose.yml | 3 +++ integrationTests/basic/approle_auth.test.js | 5 +++++ integrationTests/basic/integration.test.js | 5 +++++ integrationTests/basic/jest.config.js | 5 +++++ integrationTests/basic/jwt_auth.test.js | 5 +++++ integrationTests/basic/rsa_keys.js | 5 +++++ integrationTests/basic/userpass_auth.test.js | 5 +++++ integrationTests/e2e-tls/configs/config.hcl | 3 +++ integrationTests/e2e-tls/e2e-tls.test.js | 5 +++++ integrationTests/e2e-tls/jest.config.js | 5 +++++ integrationTests/e2e-tls/setup.js | 5 +++++ integrationTests/e2e/e2e.test.js | 5 +++++ integrationTests/e2e/jest.config.js | 5 +++++ integrationTests/e2e/setup.js | 5 +++++ integrationTests/enterprise/enterprise.test.js | 5 +++++ integrationTests/enterprise/jest.config.js | 5 +++++ jest.config.js | 5 +++++ src/action.js | 5 +++++ src/action.test.js | 5 +++++ src/auth.js | 5 +++++ src/auth.test.js | 5 +++++ src/constants.js | 5 +++++ src/entry.js | 5 +++++ src/index.js | 5 +++++ src/pki.js | 5 +++++ src/retries.test.js | 5 +++++ src/secrets.js | 5 +++++ src/utils.js | 5 +++++ 29 files changed, 139 insertions(+) diff --git a/action.yml b/action.yml index 94c738a..3885b39 100644 --- a/action.yml +++ b/action.yml @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2019, 2025 +# SPDX-License-Identifier: MIT + name: 'HashiCorp Vault' description: 'A Github Action that allows you to consume HashiCorp Vaultâ„¢ secrets as secure environment variables' inputs: diff --git a/docker-compose.yml b/docker-compose.yml index 6a8ee52..417de3d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2019, 2025 +# SPDX-License-Identifier: MIT + # Start vault server locally for the purposes of integration tests. version: "3.0" services: diff --git a/integrationTests/basic/approle_auth.test.js b/integrationTests/basic/approle_auth.test.js index 39e9c8c..0656c41 100644 --- a/integrationTests/basic/approle_auth.test.js +++ b/integrationTests/basic/approle_auth.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); const core = require('@actions/core'); diff --git a/integrationTests/basic/integration.test.js b/integrationTests/basic/integration.test.js index 95f6794..fa85d29 100644 --- a/integrationTests/basic/integration.test.js +++ b/integrationTests/basic/integration.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); const core = require('@actions/core'); diff --git a/integrationTests/basic/jest.config.js b/integrationTests/basic/jest.config.js index 03d15be..cbfed77 100644 --- a/integrationTests/basic/jest.config.js +++ b/integrationTests/basic/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + module.exports = { verbose: true }; diff --git a/integrationTests/basic/jwt_auth.test.js b/integrationTests/basic/jwt_auth.test.js index e2744a1..cdd1c31 100644 --- a/integrationTests/basic/jwt_auth.test.js +++ b/integrationTests/basic/jwt_auth.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); const core = require('@actions/core'); diff --git a/integrationTests/basic/rsa_keys.js b/integrationTests/basic/rsa_keys.js index 13ea27d..700e829 100644 --- a/integrationTests/basic/rsa_keys.js +++ b/integrationTests/basic/rsa_keys.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const privateRsaKey = ` -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEArcch89X6VuWj/CQtVfaCXUl0Pcv8IJRgICN8X+3zFNrbiTdh diff --git a/integrationTests/basic/userpass_auth.test.js b/integrationTests/basic/userpass_auth.test.js index a8a9933..d5d36ff 100644 --- a/integrationTests/basic/userpass_auth.test.js +++ b/integrationTests/basic/userpass_auth.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); const core = require('@actions/core'); diff --git a/integrationTests/e2e-tls/configs/config.hcl b/integrationTests/e2e-tls/configs/config.hcl index bf5f9f2..f81e4e6 100644 --- a/integrationTests/e2e-tls/configs/config.hcl +++ b/integrationTests/e2e-tls/configs/config.hcl @@ -1,3 +1,6 @@ +# Copyright IBM Corp. 2019, 2025 +# SPDX-License-Identifier: MIT + ui = false disable_mlock = true diff --git a/integrationTests/e2e-tls/e2e-tls.test.js b/integrationTests/e2e-tls/e2e-tls.test.js index 6db450a..bef03b7 100644 --- a/integrationTests/e2e-tls/e2e-tls.test.js +++ b/integrationTests/e2e-tls/e2e-tls.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + describe('e2e-tls', () => { it('verify', () => { expect(process.env.SECRET).toBe("SUPERSECRET"); diff --git a/integrationTests/e2e-tls/jest.config.js b/integrationTests/e2e-tls/jest.config.js index 03d15be..cbfed77 100644 --- a/integrationTests/e2e-tls/jest.config.js +++ b/integrationTests/e2e-tls/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + module.exports = { verbose: true }; diff --git a/integrationTests/e2e-tls/setup.js b/integrationTests/e2e-tls/setup.js index 0e25646..f4d6012 100644 --- a/integrationTests/e2e-tls/setup.js +++ b/integrationTests/e2e-tls/setup.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const got = require('got'); const core = require('@actions/core'); diff --git a/integrationTests/e2e/e2e.test.js b/integrationTests/e2e/e2e.test.js index 3924d04..3badbe5 100644 --- a/integrationTests/e2e/e2e.test.js +++ b/integrationTests/e2e/e2e.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + describe('e2e', () => { it('verify', () => { expect(process.env.SECRET).toBe("SUPERSECRET"); diff --git a/integrationTests/e2e/jest.config.js b/integrationTests/e2e/jest.config.js index 03d15be..cbfed77 100644 --- a/integrationTests/e2e/jest.config.js +++ b/integrationTests/e2e/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + module.exports = { verbose: true }; diff --git a/integrationTests/e2e/setup.js b/integrationTests/e2e/setup.js index 33daf37..d146931 100644 --- a/integrationTests/e2e/setup.js +++ b/integrationTests/e2e/setup.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const got = require('got'); const vaultUrl = `${process.env.VAULT_HOST}:${process.env.VAULT_PORT}`; diff --git a/integrationTests/enterprise/enterprise.test.js b/integrationTests/enterprise/enterprise.test.js index 9fa3f08..cb45934 100644 --- a/integrationTests/enterprise/enterprise.test.js +++ b/integrationTests/enterprise/enterprise.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); const core = require('@actions/core'); diff --git a/integrationTests/enterprise/jest.config.js b/integrationTests/enterprise/jest.config.js index 03d15be..cbfed77 100644 --- a/integrationTests/enterprise/jest.config.js +++ b/integrationTests/enterprise/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + module.exports = { verbose: true }; diff --git a/jest.config.js b/jest.config.js index 7916d69..ac7775c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + module.exports = { testPathIgnorePatterns: ['/node_modules/', '/integrationTests/'], }; diff --git a/src/action.js b/src/action.js index 3dcf1f4..07c06ed 100644 --- a/src/action.js +++ b/src/action.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + // @ts-check const core = require('@actions/core'); const command = require('@actions/core/lib/command'); diff --git a/src/action.test.js b/src/action.test.js index eb99bfa..641d4e2 100644 --- a/src/action.test.js +++ b/src/action.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('got'); jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); diff --git a/src/auth.js b/src/auth.js index 1d0f9b1..a1c3163 100644 --- a/src/auth.js +++ b/src/auth.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + // @ts-check const core = require('@actions/core'); const rsasign = require('jsrsasign'); diff --git a/src/auth.test.js b/src/auth.test.js index 8d19142..f9fbf28 100644 --- a/src/auth.test.js +++ b/src/auth.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('got'); jest.mock('@actions/core'); jest.mock('@actions/core/lib/command'); diff --git a/src/constants.js b/src/constants.js index 427f2fc..6f913c1 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const WILDCARD_UPPERCASE = '*'; const WILDCARD = '**'; diff --git a/src/entry.js b/src/entry.js index ea764e6..b29ff11 100644 --- a/src/entry.js +++ b/src/entry.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const core = require('@actions/core'); const { exportSecrets } = require('./action'); diff --git a/src/index.js b/src/index.js index b004eb2..1012943 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const auth = require('./auth'); const secrets = require('./secrets'); const pki = require('./pki'); diff --git a/src/pki.js b/src/pki.js index 395a2c2..183276f 100644 --- a/src/pki.js +++ b/src/pki.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const { normalizeOutputKey } = require('./utils'); const core = require('@actions/core'); diff --git a/src/retries.test.js b/src/retries.test.js index 285a7f2..1ac3d17 100644 --- a/src/retries.test.js +++ b/src/retries.test.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + jest.mock('@actions/core'); const core = require('@actions/core'); diff --git a/src/secrets.js b/src/secrets.js index 4b9a506..af9e124 100644 --- a/src/secrets.js +++ b/src/secrets.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + const jsonata = require("jsonata"); const { WILDCARD, WILDCARD_UPPERCASE} = require("./constants"); const { normalizeOutputKey } = require("./utils"); diff --git a/src/utils.js b/src/utils.js index 6e93279..7dbd0eb 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,3 +1,8 @@ +/** + * Copyright IBM Corp. 2019, 2025 + * SPDX-License-Identifier: MIT + */ + /** * Replaces any dot chars to __ and removes non-ascii charts * @param {string} dataKey