forked from codesyncapp/codesync-atom
-
Notifications
You must be signed in to change notification settings - Fork 2
134 lines (84 loc) · 3.74 KB
/
Copy pathcodescan-analysis.yml
File metadata and controls
134 lines (84 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# This workflow requires that you have an existing account with codescan.io
# For more information about configuring your workflow,
# read our documentation at https://github.com/codescan-io/codescan-scanner-action
name: CodeScan
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '34 20 * * 1'
jobs:
CodeScan:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache files
uses: actions/cache@v2
with:
path: |
~/.sonar
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Run Analysis
uses: codescan-io/codescan-scanner-action@master
with:
login: ${{ secrets.CODESCAN_AUTH_TOKEN }}
organization: ${{ secrets.CODESCAN_ORGANIZATION_KEY }}
projectKey: ${{ secrets.CODESCAN_PROJECT_KEY }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: codescan.sari
- name: Vault Secrets
# You may pin to the exact commit or the version.
# uses: hashicorp/vault-action@d5a69ceca1c3867700c32135c0da4788efdd2c0e
uses: hashicorp/vault-action@v2.3.1
with:
# The URL for the vault endpoint
url:
# A semicolon-separated list of secrets to retrieve. These will automatically be converted to environmental variable keys. See README for more details
secrets:
# The Vault namespace from which to query secrets. Vault Enterprise only, unset by default
namespace: # optional
# The method to use to authenticate with Vault.
method: # optional, default is token
# Vault role for specified auth method
role: # optional
# Custom Vault path, if the auth method was mounted at a different path
path: # optional
# The Vault Token to be used to authenticate with Vault
token: # optional
# The Role Id for App Role authentication
roleId: # optional
# The Secret Id for App Role authentication
secretId: # optional
# The Github Token to be used to authenticate with Vault
githubToken: # optional
# The path to the Kubernetes service account secret
kubernetesTokenPath: # optional, default is /var/run/secrets/kubernetes.io/serviceaccount/token
# The JSON payload to be sent to Vault when using a custom authentication method.
authPayload: # optional
# A string of newline separated extra headers to include on every request.
extraHeaders: # optional
# Whether or not export secrets as environment variables.
exportEnv: # optional, default is true
# Whether or not export Vault token as environment variables.
exportToken: # optional, default is false
# Base64 encoded CA certificate to verify the Vault server certificate.
caCertificate: # optional
# Base64 encoded client certificate for mTLS communication with the Vault server.
clientCertificate: # optional
# Base64 encoded client key for mTLS communication with the Vault server.
clientKey: # optional
# When set to true, disables verification of the Vault server certificate. Setting this to true in production is not recommended.
tlsSkipVerify: # optional, default is false
# Base64 encoded Private key to sign JWT
jwtPrivateKey: # optional
# Password for key stored in jwtPrivateKey (if needed)
jwtKeyPassword: # optional
# Time in seconds, after which token expires
jwtTtl: # optional, default is 3600