Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composite deploy action #1

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Splunk packager
description: Run splunk app packager
inputs:
app_package_path:
description: The Splunk app package path.
required: true
type: string
splunk_username:
description: The splunk username.
required: true
type: string
splunk_password:
description: The splunk password.
required: true
type: string
splunk_acs_token:
description: The splunk acs token.
required: true
type: string
splunk_acs_stack:
description: The splunk stack.
required: true
type: string
runs:
using: composite
steps:
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
python-version: '3.12.3'
architecture: 'x64'
cache: 'pip'

- run: pip install -U setuptools && pip install -r requirements.txt
shell: bash

- name: Pip audit
shell: bash
run: pip-audit -S

- name: package, validate, deploy
shell: bash
env:
SPLUNK_USER: ${{ inputs.splunk_username }}
SPLUNK_PASSWORD: ${{ inputs.splunk_password }}
SPLUNK_ACS_TOKEN: ${{ inputs.splunk_acs_token }}
SPLUNK_ACS_STACK: ${{ inputs.splunk_acs_stack }}
run: ./package.py --prod DCAP