Properly set workflow permissions #864
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: Lint Python code | |
on: [push] | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
run-python-linter: | |
name: Run Python linter | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 | |
- name: Build the middleware docker image | |
run: docker/mware/build | |
- name: Lint | |
run: ./lint-python | |