Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xicheng Guo committed Jan 5, 2024
1 parent 858e6be commit 092051d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
TEST_GITLAB_TOKEN: ${{ secrets.TEST_GITLAB_TOKEN }}
TEST_GITLAB_PROJECT_ID: ${{ secrets.TEST_GITLAB_PROJECT_ID }}
TEST_GITLAB_NUMBER: ${{ secrets.TEST_GITLAB_NUMBER }}
TEST_ENCRYPT_KEY: ${{ secrets.TEST_ENCRYPT_KEY }}


- name: Upload coverage reports to Codecov
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiny-crud",
"version": "1.0.19",
"version": "1.0.20",
"description": "",
"main": "dist/bundle.cjs.js",
"module": "dist/bundle.esm.js",
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/helper/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const GITHUB_NUMBER = process.env.TEST_GITHUB_NUMBER as string;

export const GITLAB_NUMBER = process.env.TEST_GITLAB_NUMBER as string;

export const ENCRYPT_KEY = "MySecretPassphrase";
export const TEST_ENCRYPT_KEY = process.env.TEST_ENCRYPT_KEY as string;

export const giteeRequest = createRequest({
httpLib: 'axios',
Expand All @@ -29,10 +29,10 @@ export const giteeRequest = createRequest({
repo: process.env.TEST_GITEE_REPO as string,
useEncrypt: true,
encryptFn: (data: string) => {
return CryptoJS.AES.encrypt(data, ENCRYPT_KEY).toString();
return CryptoJS.AES.encrypt(data, TEST_ENCRYPT_KEY).toString();
},
decryptFn: (data: string) => {
return CryptoJS.AES.decrypt(data, ENCRYPT_KEY).toString(CryptoJS.enc.Utf8);
return CryptoJS.AES.decrypt(data, TEST_ENCRYPT_KEY).toString(CryptoJS.enc.Utf8);
}
});

Expand Down

0 comments on commit 092051d

Please sign in to comment.