Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hadar-co committed Dec 8, 2022
1 parent b79ff38 commit 2fe9028
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code-scanning/datree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
# The branches below must be a subset of the branches above
branches: [ $default-branch ]

permissions:
contents: read

jobs:
datree:
permissions:
Expand All @@ -27,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- name: Run Datree policy check
continue-on-error: true
uses: hadar-co/action-datree@main
uses: datreeio/action-datree@de67ae7a5133d719dc794e1b75682cd4c5f94d8a
env:
# In order to use the Datree action you will need to have a Datree token.
# See https://hub.datree.io/setup/account-token#1-get-your-account-token-from-the-dashboard to acquire your token.
Expand All @@ -41,4 +44,4 @@ jobs:
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: datree.sarif
sarif_file: datree.sarif

0 comments on commit 2fe9028

Please sign in to comment.