Skip to content

Commit 6982e5b

Browse files
Potential fix for code scanning alert no. 4: Workflow does not contain permissions (#9)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 02f115b commit 6982e5b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: [ push, pull_request ]
55
jobs:
66
test:
77
runs-on : ubuntu-latest
8+
permissions:
9+
contents: read
810
steps :
911
- name: Checkout
1012
uses: actions/checkout@v4
@@ -46,6 +48,9 @@ jobs:
4648
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
4749
needs: [ test ]
4850
runs-on : ubuntu-latest
51+
permissions:
52+
contents: read
53+
packages: write
4954
steps:
5055
- name: Checkout
5156
uses: actions/checkout@v4

0 commit comments

Comments
 (0)