Skip to content

Commit d038fba

Browse files
committed
Adding the capability to pass in a container image list to an Antithesis test
1 parent 96a568c commit d038fba

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

__tests__/main.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ describe('successful_action', () => {
4343
return 'password'
4444
case 'github_token':
4545
return 'github_token'
46+
case 'images':
47+
return 'container1=sha1;container2=sha2;container3=sha3'
4648
default:
4749
return ''
4850
}

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ inputs:
2929
description: 'The Github token to be used to post back status updates'
3030
required: true
3131
default: ''
32+
images:
33+
description: 'The containers & digests that Antithesis tests will run on. If not specified the values will be inferred from the test.'
34+
required: false
35+
default: ''
3236

3337
# Define your outputs here.
3438
outputs:

dist/index.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ export async function run(): Promise<void> {
2727

2828
core.info(`Callback Url: ${call_back_url}`)
2929

30+
// Read images informaiton
31+
const images = core.getInput('images')
32+
3033
// Build the request body
3134
const github_token = core.getInput('github_token')
3235

3336
const body = {
3437
params: {
3538
'antithesis.integrations.type': 'github',
3639
'antithesis.integrations.call_back_url': call_back_url,
37-
'antithesis.integrations.token': github_token
40+
'antithesis.integrations.token': github_token,
41+
'antithesis.images': images
3842
}
3943
}
4044

0 commit comments

Comments
 (0)