Skip to content

Commit f6da9db

Browse files
AzfaarQureshiAzfaar Qureshi
and
Azfaar Qureshi
authored
Adding Security Workflows to GitHub Actions (1/2): codeql workflow (#506)
* adding codeql analysis job * removing PR and branch * updating changelog * removing push trigger Co-authored-by: Azfaar Qureshi <[email protected]>
1 parent ccf6b73 commit f6da9db

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/codeql_analysis.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
workflow_dispatch:
3+
schedule:
4+
# ┌───────────── minute (0 - 59)
5+
# │ ┌───────────── hour (0 - 23)
6+
# │ │ ┌───────────── day of the month (1 - 31)
7+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
8+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
9+
# │ │ │ │ │
10+
# │ │ │ │ │
11+
# │ │ │ │ │
12+
# * * * * *
13+
- cron: '30 1 * * *'
14+
15+
jobs:
16+
CodeQL-Build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
# Initializes the CodeQL tools for scanning.
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v1
26+
with:
27+
languages: go
28+
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v1
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v1

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1515
- Add registry link check to `Makefile` and pre-release script. (#446)
1616
- A new AWS X-Ray ID Generator (#459)
1717
- Migrate CircleCI jobs to GitHub Actions (#476)
18+
- Add CodeQL GitHub Action (#506)
19+
1820
### Fixed
1921

2022
- Fixes the body replacement in otelhttp to not to mutate a nil body. (#484)

0 commit comments

Comments
 (0)