Improve the code to print the secrets using printTable (#464) #248
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: code-scanner | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
types: [opened, ready_for_review, synchronize] | |
permissions: | |
contents: write | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
jobs: | |
code-analysis: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ls -al | |
- name: Scan current project | |
id: scan | |
uses: anchore/scan-action@v3 | |
with: | |
fail-build: false | |
path: "." | |
- name: Upload scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
if: always() | |
with: | |
sarif_file: ${{ steps.scan.outputs.sarif }} |