Skip to content

Commit

Permalink
CICD-3007: upgrade actions to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
saars-orca committed Jun 10, 2024
1 parent a4d9411 commit b37d3de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test-secrets-action-sarif.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,20 @@ jobs:
permissions:
security-events: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # ratchet:actions/checkout@v4
with:
fetch-depth: 0
- name: Scan Secrets
id: orcasecurity_secrets_scan
uses: ./
with:
api_token:
${{ secrets.ORCA_SECURITY_API_TOKEN }}
project_key:
"default"
format:
"sarif"
output:
"results/"
api_token: ${{ secrets.ORCA_SECURITY_API_TOKEN }}
project_key: "default"
format: "sarif"
output: "results/"
console_output: "table"
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@6ac9fc7e8e290bda8fac86290b68e176def71959 # ratchet:github/codeql-action/upload-sarif@v2
if: ${{ always() && steps.orcasecurity_secrets_scan.outputs.exit_code != 1 }}
with:
sarif_file: results/secrets.sarif
10 changes: 4 additions & 6 deletions .github/workflows/test-secrets-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # ratchet:actions/checkout@v4
with:
fetch-depth: 0

- name: Scan Secrets
id: orcasecurity
uses: ./
with:
api_token:
${{ secrets.ORCA_SECURITY_API_TOKEN }}
project_key:
"default"
api_token: ${{ secrets.ORCA_SECURITY_API_TOKEN }}
project_key: "default"
console_output: "table"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
steps:
# Checkout your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
permissions:
security-events: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Scan Secrets
Expand Down

0 comments on commit b37d3de

Please sign in to comment.