Skip to content

Commit

Permalink
add sarif uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 committed Jan 4, 2024
1 parent e26c169 commit 040da1e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ exclude_paths:
- .github/
- .vscode/
- .git

sarif_file: ansible.sarif

kinds:
- playbook: '**/*-playbook.{yaml,yml}'
8 changes: 7 additions & 1 deletion .github/workflows/ansible-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@main # or version tag instead of 'main'
uses: ansible/ansible-lint@main # or version tag instead of 'main'
- name: Upload sarif
if: always()
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ansible.sarif
category: ansible-lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vagrant/**
local-dev-cluster.yaml
local-dev-cluster.yaml
**.sarif

0 comments on commit 040da1e

Please sign in to comment.