forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[codeql] Collect statistics weekly (elastic#193308)
Moves stats collection from after the analyze scan to a weekly cron.
- Loading branch information
Showing
3 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CodeQL statistics | ||
|
||
on: | ||
schedule: | ||
- cron: '27 0 * * 1' # At 00:27 every Monday | ||
|
||
jobs: | ||
stats: | ||
name: CodeQL statistics | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'elastic/kibana' # Hack: Do not run on forks | ||
steps: | ||
- name: Checkout kibana-operations | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
repository: 'elastic/kibana-operations' | ||
ref: main | ||
path: ./kibana-operations | ||
token: ${{secrets.KIBANAMACHINE_TOKEN}} | ||
|
||
- name: CodeQL alert statistics | ||
working-directory: ./kibana-operations/triage | ||
env: | ||
GITHUB_TOKEN: ${{secrets.KIBANAMACHINE_TOKEN}} | ||
SLACK_TOKEN: ${{secrets.CODE_SCANNING_SLACK_TOKEN}} | ||
run: | | ||
npm ci --omit=dev | ||
node codeql-alert-stats |
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