Skip to content

Commit

Permalink
Released via GitHub Actions (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
directionless authored Jul 24, 2024
1 parent 7523643 commit 2140167
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- macos-12
- ubuntu-24.04
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,10 +24,36 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install setuptools wheel build
- name: build
run: |
python setup.py build
- name: package
run: |
python -m build
publish:
needs: build_and_test
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/osquery
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: build
run: |
python setup.py build
- name: package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ python setup.py install

See [CONTRIBUTING.md](https://github.com/osquery/osquery-python/blob/master/CONTRIBUTING.md) and the [osquery wiki](https://osquery.readthedocs.org) for development information.

### How To Release

1. Pick a version number
2. Update `osquery/__init__.py` to match
3. Use the GitHub release
4. Make sure the GitHub Action ran

### Vulnerabilities

Facebook has a [bug bounty](https://www.facebook.com/whitehat/) program that includes osquery. If you find a security vulnerability in osquery, please submit it via the process outlined on that page and do not file a public issue. For more information on finding vulnerabilities in osquery, see a recent blog post about [bug-hunting osquery](https://www.facebook.com/notes/facebook-bug-bounty/bug-hunting-osquery/954850014529225).
2 changes: 1 addition & 1 deletion osquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

__title__ = "osquery"
__version__ = "3.0.7"
__version__ = "3.1.1"
__author__ = "osquery authors"
__license__ = "BSD"
__copyright__ = "Copyright 2015-present, The osquery authors"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
description-file = README.rst
description_file = README.rst

[bdist_wheel]
universal=1

0 comments on commit 2140167

Please sign in to comment.