Skip to content

Commit 7949f23

Browse files
committed
Upgrade Codacy security scan workflow
1 parent 0578dda commit 7949f23

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/codacy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ name: Codacy Security Scan
1515

1616
on:
1717
push:
18-
branches: [ master ]
18+
branches: ["master"]
1919
pull_request:
2020
# The branches below must be a subset of the branches above
21-
branches: [ master ]
21+
branches: ["master"]
2222
schedule:
23-
- cron: '16 13 * * 5'
23+
- cron: "42 10 * * 3"
2424

2525
permissions:
2626
contents: read
@@ -30,12 +30,13 @@ jobs:
3030
permissions:
3131
contents: read # for actions/checkout to fetch code
3232
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
33+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
3334
name: Codacy Security Scan
3435
runs-on: ubuntu-latest
3536
steps:
3637
# Checkout the repository to the GitHub Actions runner
3738
- name: Checkout code
38-
uses: actions/checkout@v2
39+
uses: actions/checkout@v4
3940

4041
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
4142
- name: Run Codacy Analysis CLI
@@ -55,6 +56,6 @@ jobs:
5556

5657
# Upload the SARIF file generated in the previous step
5758
- name: Upload SARIF results file
58-
uses: github/codeql-action/upload-sarif@v1
59+
uses: github/codeql-action/upload-sarif@v3
5960
with:
6061
sarif_file: results.sarif

0 commit comments

Comments
 (0)