Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ATI-OS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal D.
ATI-OS
Commits
dab50b0b
Unverified
Commit
dab50b0b
authored
1 year ago
by
Michal D
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Datree workflow
Datree code check
parent
f406a8dd
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/datree.yml
+47
-0
47 additions, 0 deletions
.github/workflows/datree.yml
with
47 additions
and
0 deletions
.github/workflows/datree.yml
0 → 100644
+
47
−
0
View file @
dab50b0b
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# A sample workflow which checks out your code and scans your desired k8s config files for misconfigurations using the Datree CLI.
# The results are then uploaded to GitHub Security Code Scanning.
#
# For more information and configurations options, see https://github.com/datreeio/action-datree/
name
:
Datree
on
:
push
:
branches
:
[
"
main"
,
"
Dev"
]
pull_request
:
# The branches below must be a subset of the branches above
branches
:
[
"
main"
]
permissions
:
contents
:
read
jobs
:
datree
:
permissions
:
contents
:
read
# for actions/checkout to fetch code
security-events
:
write
# for github/codeql-action/upload-sarif to upload SARIF results
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Run Datree policy check
continue-on-error
:
true
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.
DATREE_TOKEN
:
${{ secrets.DATREE_TOKEN }}
with
:
# Add the path to the configuration file/s that you would like to test.
# See https://github.com/datreeio/action-datree#usage for all available options.
path
:
test-file.yaml
# Setting a SARIF output will generate a file named "datree.sarif" containing your test results
cliArguments
:
"
-o
sarif"
-
name
:
Upload result to GitHub Code Scanning
uses
:
github/codeql-action/upload-sarif@v2
with
:
sarif_file
:
datree.sarif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment