Skip to content

Commit adb9d6f

Browse files
authored
Merge pull request #16 from advanced-security/workflow-permissions
Update permissions in starter workflow
2 parents b835423 + ae9d2a6 commit adb9d6f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

starter-workflow.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python Lint Workflow
1+
name: Python Lint
22
on:
33
push:
44
branches: [ "main" ]
@@ -8,15 +8,23 @@ on:
88
schedule:
99
- cron: '22 3 * * 2' # please pick a different time
1010
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
actions: read
15+
security-events: write
16+
1117
jobs:
1218
lint:
1319
runs-on: ubuntu-latest
20+
1421
strategy:
1522
matrix:
1623
linter: [flake8, pylint, ruff, mypy, pytype, pyright, fixit]
1724
fail-fast: false
25+
1826
steps:
19-
- name: Run Python Lint
27+
- name: Python Lint
2028
uses: advanced-security/python-lint-code-scanning-action@v1
2129
with:
2230
linter: ${{ matrix.linter }}

0 commit comments

Comments
 (0)