Skip to content

Commit 0bb9b80

Browse files
authored
Create codacy.yml (#25)
* Create codacy.yml * Update ci.yml * Update .codecov.yml * Update codacy.yml * Update ci.yml
1 parent c500288 commit 0bb9b80

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ coverage:
66
status:
77
patch:
88
default:
9-
target: 49
9+
target: auto
1010
changes: false
1111
project:
1212
default:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
env:
158158
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
159159

160-
xcode-test-ios-5_3:
160+
xcode-test-ios-5_4:
161161
timeout-minutes: 15
162162
needs: xcode-build-watchos
163163
runs-on: macos-11

.github/workflows/codacy.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow checks out code, performs a Codacy security scan
7+
# and integrates the results with the
8+
# GitHub Advanced Security code scanning feature. For more information on
9+
# the Codacy security scan action usage and parameters, see
10+
# https://github.com/codacy/codacy-analysis-cli-action.
11+
# For more information on Codacy Analysis CLI in general, see
12+
# https://github.com/codacy/codacy-analysis-cli.
13+
14+
name: Codacy Security Scan
15+
16+
on:
17+
push:
18+
branches: [ "main" ]
19+
pull_request:
20+
# The branches below must be a subset of the branches above
21+
branches: [ "main" ]
22+
schedule:
23+
- cron: '37 7 * * 5'
24+
25+
permissions:
26+
contents: read
27+
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.ref }}
30+
cancel-in-progress: true
31+
32+
jobs:
33+
codacy-security-scan:
34+
permissions:
35+
contents: read # for actions/checkout to fetch code
36+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
37+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
38+
name: Codacy Security Scan
39+
runs-on: ubuntu-latest
40+
steps:
41+
# Checkout the repository to the GitHub Actions runner
42+
- name: Checkout code
43+
uses: actions/checkout@v3
44+
45+
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
46+
- name: Run Codacy Analysis CLI
47+
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
48+
with:
49+
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
50+
# You can also omit the token and run the tools that support default configurations
51+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
52+
verbose: true
53+
output: results.sarif
54+
format: sarif
55+
# Adjust severity of non-security issues
56+
gh-code-scanning-compat: true
57+
# Force 0 exit code to allow SARIF file generation
58+
# This will handover control about PR rejection to the GitHub side
59+
max-allowed-issues: 2147483647
60+
61+
# Upload the SARIF file generated in the previous step
62+
- name: Upload SARIF results file
63+
uses: github/codeql-action/upload-sarif@v2
64+
with:
65+
sarif_file: results.sarif

0 commit comments

Comments
 (0)