Skip to content

Commit cfca534

Browse files
committed
init
1 parent ec8b744 commit cfca534

12 files changed

Lines changed: 5095 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2021 Splunk Inc.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
# appinspect-api-action
2-
GitHub action to validation a Splunk app package using the AppInspect API
1+
# App Inspect API GitHub Action
2+
3+
Simple GitHub action to validation a Splunk app package using AppInspect. This action uses the [Splunkbase AppInspect API](https://dev.splunk.com/enterprise/docs/developapps/testvalidate/appinspect/runappinspectrequestsapi).
4+
5+
There is also an [alternative GitHub action using the AppInspect CLI](https://github.com/splunk/appinspect-cli-action).
6+
7+
## Example Usage
8+
9+
```yaml
10+
jobs:
11+
some-job:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# ...
15+
- uses: splunk/appinspect-api-action@v1
16+
with:
17+
filePath: ./dist/myapp.tar.gz
18+
splunkUser: ${{ secrets.SPLUNKBASE_USER }}
19+
splunkPassword: ${{ secrets.SPLUNKBASE_PASSWORD }}
20+
includedTags: cloud
21+
```
22+
23+
## Inputs
24+
25+
| Name | Description |
26+
| ---------------- | ------------------------------------------------------------------------------ |
27+
| `filePath` | Path to the app bundle file (.tar.gz or .spl) |
28+
| `splunkUser` | Splunk.com user used to login to the appinspect API |
29+
| `splunkPassword` | Splunk.com password used to login to the appinspect API |
30+
| `includedTags` | Optional: Comma separated list of [tags](#tags) to include in appinspect job |
31+
| `excludedTags` | Optional: Comma separated list of [tags](#tags) to exclude from appinspect job |
32+
33+
### Tags
34+
35+
For more info on tags see [Splunk AppInspect tag reference](https://dev.splunk.com/enterprise/docs/reference/appinspecttagreference).

action.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: App Inspect
2+
description: Run Splunk AppInspect for a splunk app bundle
3+
author: Splunk
4+
runs:
5+
using: node12
6+
main: dist/index.js
7+
inputs:
8+
filePath:
9+
description: Path to the app bundle file (.tar.gz or .spl)
10+
required: true
11+
splunkUser:
12+
description: Splunk.com user used to login to the appinspect API
13+
required: true
14+
splunkPassword:
15+
description: Splunk.com password used to login to the appinspect API
16+
required: true
17+
includedTags:
18+
description: Comma separated list of tags to include in appinspect job
19+
required: false
20+
excludedTags:
21+
description: Comma separated list of tags to exclude from appinspect job
22+
required: false

0 commit comments

Comments
 (0)