Skip to content

Commit fc0f00a

Browse files
Potential fix for code scanning alert no. 2: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 01f1994 commit fc0f00a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/format_code.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Code Format
22
on:
33
push:
4+
permissions:
5+
contents: read
46
jobs:
57
flake8_py3:
68
runs-on: ubuntu-latest
@@ -19,6 +21,9 @@ jobs:
1921
args: "--exit-zero --select=E"
2022
format:
2123
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
pull-requests: write
2227
steps:
2328
- uses: actions/checkout@v4
2429
with:

0 commit comments

Comments
 (0)