Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
3a37fc2
Packaging updates, Licensing fixes and minor README cleanup (#7)
jshcodes Dec 7, 2020
0e6edea
Broken link fixes in README.md (#8)
jshcodes Dec 7, 2020
e1d5102
Restructure the README (#9)
shawndwells Dec 8, 2020
cd142b9
Create GitHub Issue Templates (#10)
shawndwells Dec 8, 2020
e92668a
Uber class custom headers and Uber class UploadSampleV2 fix (#13)
jshcodes Dec 8, 2020
41b4c51
Update PIP metadata for package status (#15)
jshcodes Dec 8, 2020
bd62c8c
Minor typo fix in README.md (#16)
jshcodes Dec 8, 2020
0b49d59
Initial web template (#19)
shawndwells Dec 9, 2020
9d5b2db
Set theme jekyll-theme-slate
shawndwells Dec 9, 2020
f1c7e32
removing web template (#20)
shawndwells Dec 9, 2020
ecb9c60
Update to reflect enabling of GitHub Discussions (#18)
shawndwells Dec 9, 2020
9cf008c
Non-JSON content response fix for Uber class. README.md updates. Init…
jshcodes Dec 18, 2020
68ac9a3
Begin test scripts (#24)
shawndwells Dec 18, 2020
08eb681
PyTest Workflow integration (#25)
jshcodes Dec 18, 2020
d7f7bc2
PyTest workflow update for working folder (#26)
jshcodes Dec 18, 2020
abf0000
Update README with github actions status badge (#27)
isimluk Dec 22, 2020
85d5782
Fix to reduce test flakiness in test_authorization.py (#28)
jshcodes Dec 24, 2020
9cbaed5
Updated service class unit tests (#31)
jshcodes Dec 26, 2020
c900816
Service class updates (#33)
jshcodes Dec 28, 2020
6433582
Coverage badge generation, additional unit tests (#41)
jshcodes Jan 11, 2021
41f134d
MSSP targeting token authentication fix (#48)
jshcodes Jan 19, 2021
72b737c
MSSP targeting credential dictionary change (Uber class only) (#50)
jshcodes Jan 19, 2021
b3a82cf
Configurable SSL verification options, Disable Python 3.5 testing (#54)
jshcodes Feb 12, 2021
9532aed
initial gitbook scaffolding (#61) (#62)
shawndwells Mar 1, 2021
9485189
Version 0.4 Update (#64)
jshcodes Mar 2, 2021
9e879ff
Unit test updates (#65)
jshcodes Mar 2, 2021
1d825a8
v0.4.1 - action_name, missing methods, CSPM class (#67)
jshcodes Mar 11, 2021
302c5c8
v0.4.2 Update - New endpoints, Missing UpdateDeviceTags method (#73)
jshcodes Mar 17, 2021
c9a738a
Unit test adjustments (Post v0.4.2 merge) (#75)
jshcodes Mar 17, 2021
7218d3d
Configure dependabot to focus on python (#77)
isimluk Mar 17, 2021
0ff17f5
Requirements.txt updates (#83)
jshcodes Mar 17, 2021
f768475
Bump urllib3 from 1.26.2 to 1.26.4 (#82)
dependabot[bot] Mar 17, 2021
807859d
Bump requests from 2.25.0 to 2.25.1 (#81)
dependabot[bot] Mar 17, 2021
7bc9b63
Bump ini from 1.3.5 to 1.3.8 (#84)
dependabot[bot] Mar 18, 2021
70e9c1f
Bump pug-code-gen from 2.0.2 to 2.0.3 (#85)
dependabot[bot] Mar 18, 2021
1e4df2c
Create CODE_OF_CONDUCT.md (#88)
jshcodes Mar 22, 2021
8c4e4c9
Adding SECURITY.md (#89)
jshcodes Mar 23, 2021
2bf4197
Create CONTRIBUTING.md (#92)
jshcodes Mar 25, 2021
2370db0
Create codeql-analysis.yml (#93)
jshcodes Mar 26, 2021
e7056b4
Update CODE_OF_CONDUCT.md (#94)
jshcodes Mar 26, 2021
b2c4638
Update linting.yml - Adding bandit to workflow (#95)
jshcodes Mar 26, 2021
fd6d975
Update CONTRIBUTING.md (#97)
jshcodes Mar 27, 2021
8289e5e
Update pull_request_template.md (#98)
jshcodes Mar 27, 2021
88205de
Update CONTRIBUTING.md (#99)
jshcodes Mar 28, 2021
f25421b
v0.4.3 Update - Sample_Uploads service class, Fixes, Documentation (#96)
jshcodes Mar 30, 2021
47bff9b
Update README.md (#101)
jshcodes Mar 30, 2021
15ec033
Bump y18n from 4.0.0 to 4.0.1 (#100)
dependabot[bot] Mar 30, 2021
857d6d3
Update README.md (#103)
jshcodes Mar 30, 2021
0e5181a
Documentation updates (#104)
jshcodes Mar 30, 2021
148af62
Update CONTRIBUTING.md (#105)
jshcodes Mar 31, 2021
929753f
Update README.md (#107)
jshcodes Apr 1, 2021
1c6cc02
Create python-publish.yml (#106)
jshcodes Apr 1, 2021
3c02bac
Update linting.yml (#108)
jshcodes Apr 1, 2021
0cd6976
Add spell checking workflow (#110)
jshcodes Apr 2, 2021
0b19fa7
Pull request automatic labelling (#111)
jshcodes Apr 2, 2021
dfd78af
Workflow updates (#112)
jshcodes Apr 2, 2021
1b79f0c
Create dev-deploy.yml (#109)
jshcodes Apr 2, 2021
69ed0bc
Usage Examples (#116)
jshcodes Apr 3, 2021
efef8ed
Discover for AWS Usage Examples (#117)
jshcodes Apr 4, 2021
b411eff
[DEPLOY] Version 0.4.4 Update - Sensor Download Service Class, Fixes …
jshcodes Apr 5, 2021
00afc8c
[DEPLOY] Version 0.4.5 update - Custom IOA, Quick Scan Service Classe…
jshcodes Apr 12, 2021
36312f4
Quick Scan / Sandbox usage sample (#127)
jshcodes Apr 13, 2021
5f0efc2
Quick Scan sample documentation (#128)
jshcodes Apr 13, 2021
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
Prev Previous commit
Next Next commit
Workflow updates (CrowdStrike#112)
* Create bandit.yml

* Create unit_testing.yml

* Update bandit.yml

* Update linting.yml

* Update bandit.yml

* Update labeler.yml

* Update linting.yml

* Update bandit.yml

* Update labeler.yml

* Update bandit.yml

* Update unit_testing.yml

* Update label_request.yml

* Update linting.yml

* Update setup.py

* Update labeler.yml
  • Loading branch information
jshcodes authored Apr 2, 2021
commit dfd78af2ff47b525b491cefdf2beb937d3c6e121
8 changes: 6 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ documentation:
- any: ['docs/*', '*.md']

package:
- any: ['src/*.py']
- src/*.py
- src/falconpy/*.py
- setup.py

pipeline:
- any: ['.github/*']
- .github/*
- .github/workflows/*
- .github/ISSUE_TEMPLATE/*

unit testing:
- any: ['tests/*', 'util/*']
28 changes: 28 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Bandit
on:
push:
branches:
- main
- 'ver_*'
pull_request:
branches:
- main
- 'ver_*'

jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install bandit
pip install -r requirements.txt
- name: Analyze with bandit
run: |
bandit -r src
4 changes: 3 additions & 1 deletion .github/workflows/label_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: "Label Request"
on:
pull_request:
branches: [ main ]
branches:
- main
- 'ver_*'

jobs:
triage:
Expand Down
38 changes: 12 additions & 26 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

name: Flake8
on:
push:
branches: [ main ]
branches:
- main
- 'ver_*'
pull_request:
branches: [ main ]
branches:
- main
- 'ver_*'

jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ['3.6', '3.7', '3.8', '3.9']
runs-on: ${{ matrix.os }}
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -25,22 +21,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest coverage bandit
python -m pip install flake8
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src/falconpy --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src/falconpy --count --exit-zero --max-complexity=15 --max-line-length=127 --statistics
- name: Test with pytest
env:
DEBUG_API_ID: ${{ secrets.DEBUG_API_ID }}
DEBUG_API_SECRET: ${{ secrets.DEBUG_API_SECRET }}
run: |
coverage run --source=src --omit=src/falconpy/debug.py -m pytest -s
coverage report
- name: Analyze with bandit
run: |
bandit -r src

# Stop the build on all linting errors - 04.02.21 / jshcodes@CrowdStrike
flake8 src/falconpy --count --max-complexity=15 --max-line-length=127 --statistics
34 changes: 34 additions & 0 deletions .github/workflows/unit_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python package
on:
push:
branches: [ main ]
pull_request:
branches:
- main
- 'ver_*'

jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ['3.6', '3.7', '3.8', '3.9']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest coverage
pip install -r requirements.txt
- name: Test with pytest
env:
DEBUG_API_ID: ${{ secrets.DEBUG_API_ID }}
DEBUG_API_SECRET: ${{ secrets.DEBUG_API_SECRET }}
run: |
coverage run --source=src --omit=src/falconpy/debug.py -m pytest -s
coverage report
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"Intended Audience :: Developers",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
Expand Down