security: add permissions block to workflows #645
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: packages | |
on: | |
workflow_call: ~ | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.asciidoc' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.asciidoc' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install wheel | |
run: pip install --user wheel | |
- name: Building universal wheel | |
run: python setup.py bdist_wheel | |
- name: Building source distribution | |
run: python setup.py sdist | |
- name: Upload Packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: packages | |
path: | | |
dist/*.whl | |
dist/*tar.gz | |