Skip to content
Open
Show file tree
Hide file tree
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
107 changes: 0 additions & 107 deletions .circleci/config.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build and Release

on:
push:
tags: ['v*']
pull_request:
types: [opened, reopened, synchronize]

jobs:
validate-content:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v5

- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.9'

- name: Install Splunk AppInspect CLI
run: |
pip install splunk-appinspect

- name: Run appinspect
run: |
rm -rf TA-osquery/.git
rm -rf TA-osquery/.circleci
rm -rf TA-osquery/.gitignore
rm -rf TA-osquery/.github
tar -zcvf TA-osquery.tar.gz TA-osquery
mkdir dist
cp TA-osquery.tar.gz dist/
splunk-appinspect inspect ../TA-osquery.tar.gz --included-tags=cloud --included-tags=future

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: TA-osquery-latest
path: TA-osquery.tar.gz

- name: Upload to workspace
uses: actions/upload-artifact@v4
with:
name: release-artifact
path: dist/TA-osquery.tar.gz

publish-github-release:
needs: validate-content
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

steps:
- name: Download artifact
uses: actions/download-artifact@v5
with:
name: release-artifact
path: ~/dist/

- name: Publish release on GitHub
uses: softprops/action-gh-release@v2
with:
files: ~/dist/TA-osquery.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref_name }}
generate_release_notes: true