Skip to content

Commit 39fe519

Browse files
committed
Use reusable workflow and make integration test fail
1 parent 48cf0d4 commit 39fe519

2 files changed

Lines changed: 15 additions & 24 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,10 @@ jobs:
176176

177177
- name: Slack Notification on Failure
178178
if: ${{ failure() }}
179-
uses: rtCamp/action-slack-notify@v2
180-
env:
181-
SLACK_CHANNEL: ${{ secrets.slack_channel }}
182-
SLACK_COLOR: ${{ job.status }}
183-
SLACK_TITLE: Test Failed in CLI repository
184-
SLACK_USERNAME: GithubActions
185-
SLACK_WEBHOOK: ${{ secrets.slack_webhook }}
179+
uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@debug
180+
with:
181+
slack_url: ${{ secrets.slack_webhook }}
182+
github_token: ${{ secrets.GITHUB_TOKEN }}
186183

187184
snyk-code-test:
188185
if: ${{ inputs.run_snyk }}
@@ -220,16 +217,13 @@ jobs:
220217
# --trail ${{ inputs.TRAIL_NAME }}
221218
# --scan-results snyk-code.json
222219
# --org ${{ inputs.KOSLI_ORG }}
223-
220+
224221
# - name: Slack Notification on Failure
225222
# if: ${{ failure() }}
226-
# uses: rtCamp/action-slack-notify@v2
227-
# env:
228-
# SLACK_CHANNEL: ${{ secrets.slack_channel }}
229-
# SLACK_COLOR: ${{ job.status }}
230-
# SLACK_TITLE: Snyk Code Failed in CLI repository
231-
# SLACK_USERNAME: GithubActions
232-
# SLACK_WEBHOOK: ${{ secrets.slack_webhook }}
223+
# uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@debug
224+
# with:
225+
# slack_url: ${{ secrets.slack_webhook }}
226+
# github_token: ${{ secrets.GITHUB_TOKEN }}
233227

234228
snyk-dependency-test:
235229
if: ${{ inputs.run_snyk }}
@@ -267,13 +261,10 @@ jobs:
267261
# --trail ${{ inputs.TRAIL_NAME }}
268262
# --scan-results snyk-dependency.json
269263
# --org ${{ inputs.KOSLI_ORG }}
270-
264+
271265
# - name: Slack Notification on Failure
272266
# if: ${{ failure() }}
273-
# uses: rtCamp/action-slack-notify@v2
274-
# env:
275-
# SLACK_CHANNEL: ${{ secrets.slack_channel }}
276-
# SLACK_COLOR: ${{ job.status }}
277-
# SLACK_TITLE: Snyk Test Failed in CLI repository
278-
# SLACK_USERNAME: GithubActions
279-
# SLACK_WEBHOOK: ${{ secrets.slack_webhook }}
267+
# uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@debug
268+
# with:
269+
# slack_url: ${{ secrets.slack_webhook }}
270+
# github_token: ${{ secrets.GITHUB_TOKEN }}

cmd/kosli/assertApproval_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (suite *AssertApprovalCommandTestSuite) SetupTest() {
2929
suite.artifactName = "arti"
3030
suite.artifactPath = "testdata/folder1/hello.txt"
3131
global = &GlobalOpts{
32-
ApiToken: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6ImNkNzg4OTg5In0.e8i_lA_QrEhFncb05Xw6E_tkCHU9QfcY4OLTVUCHffY",
32+
ApiToken: "XXeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6ImNkNzg4OTg5In0.e8i_lA_QrEhFncb05Xw6E_tkCHU9QfcY4OLTVUCHffY",
3333
Org: "docs-cmd-test-user",
3434
Host: "http://localhost:8001",
3535
}

0 commit comments

Comments
 (0)