Skip to content

Commit f0e6b5f

Browse files
authored
Merge pull request #12 from Buttje/alert-autofix-25
Potential fix for code scanning alert no. 25: Workflow does not contain permissions
2 parents c880b67 + 7d683f0 commit f0e6b5f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

44
name: Python package
5+
permissions:
6+
contents: read
57

68
on:
79
push:
@@ -35,6 +37,10 @@ jobs:
3537
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3638
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3739
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40+
- name: Installation
41+
run: |
42+
python install.py
43+
pip install -r requirements.txt
3844
- name: Test with pytest
3945
run: |
4046
pytest

0 commit comments

Comments
 (0)