Skip to content

Commit 0c8f9bc

Browse files
Update checkout sha of the code (#33)
* Update checkout sha of the code Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * More tweaks Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * more tweaks Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> --------- Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent fa42a53 commit 0c8f9bc

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

.github/workflows/build-test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ jobs:
1616
- 18
1717
- 20
1818
runs-on: ubuntu-latest
19+
if: github.repository == 'opensearch-project/automation-app'
1920
steps:
2021
- uses: actions/checkout@v4
22+
if: github.event_name == 'push'
23+
- uses: actions/checkout@v4
24+
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
25+
with:
26+
ref: ${{ github.event.pull_request.head.sha }}
2127
- name: Set up node-${{ matrix.node-version }}
2228
uses: actions/setup-node@v4
2329
with:
@@ -35,6 +41,7 @@ jobs:
3541
- name: Run junit
3642
run: npm run junit
3743
- name: Upload results to Codecov
44+
if: ${{ !cancelled() }}
3845
uses: codecov/codecov-action@v4
3946
with:
4047
token: ${{ secrets.CODECOV_TOKEN }}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opensearch-automation-app",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"description": "An Automation App that handles all your GitHub Repository Activities",
55
"author": "Peter Zhu",
66
"homepage": "https://github.com/opensearch-project/automation-app",
@@ -68,4 +68,4 @@
6868
"engines": {
6969
"node": ">= 18"
7070
}
71-
}
71+
}

src/utility/opensearch/opensearch-client.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ export class OpensearchClient {
4040
const client = new OpenSearchClient({
4141
...AwsSigv4Signer({
4242
region: this._region,
43-
getCredentials: () =>
44-
Promise.resolve({
45-
accessKeyId: credentials.AccessKeyId!,
46-
secretAccessKey: credentials.SecretAccessKey!,
47-
sessionToken: credentials.SessionToken!,
48-
}),
43+
getCredentials: () => Promise.resolve({
44+
accessKeyId: credentials.AccessKeyId!,
45+
secretAccessKey: credentials.SecretAccessKey!,
46+
sessionToken: credentials.SessionToken!,
47+
}),
4948
}),
5049
node: this._openSearchUrl,
5150
});

0 commit comments

Comments
 (0)