Skip to content

Commit 9c25bf7

Browse files
authored
Merge branch 'main' into break-system-packages
2 parents e641989 + adb9d6f commit 9c25bf7

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,13 @@ runs:
6363
steps:
6464
- name: Checkout code
6565
uses: actions/checkout@v4
66+
6667
- name: Set up Python
6768
id: setup-python
6869
uses: actions/setup-python@v4
6970
with:
7071
python-version: ${{ inputs.python-version }}
72+
7173
- name: Run Python Lint
7274
run: |
7375
echo "::debug::Running Python Lint for ${INPUTS_LINTER} on ${INPUTS_TARGET} with Python ${INPUTS_PYTHON_VERSION}"
@@ -208,14 +210,16 @@ runs:
208210
INPUTS_TYPESHED_VERSION: ${{ inputs.typeshed-version }}
209211
GH_TOKEN: ${{ github.token }}
210212
shell: bash
213+
211214
- name: Upload SARIF
212215
if: ${{ hashFiles(inputs.output) != '' }}
213216
uses: github/codeql-action/upload-sarif@v3
214217
with:
215218
sarif_file: ${{ inputs.output }}
219+
216220
- name: Upload SARIF as debug artefact
217221
if: ${{ always() && runner.debug == '1' && hashFiles(inputs.output) != '' }}
218-
uses: actions/upload-artifact@v3
222+
uses: actions/upload-artifact@v4
219223
with:
220224
name: ${{ inputs.output }}
221225
path: ${{ inputs.output }}

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)