From 808cdbd8e8668a21933b9ce7b7b469ed9cc1f5f4 Mon Sep 17 00:00:00 2001 From: Daniel Tobon Date: Tue, 12 Jul 2022 16:26:44 -0500 Subject: [PATCH 1/3] test codeql 1 --- .github/workflows/codeql.yaml | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/codeql.yaml diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml new file mode 100644 index 0000000..5b6a1a7 --- /dev/null +++ b/.github/workflows/codeql.yaml @@ -0,0 +1,61 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * + - cron: '30 1 * * 0' + +jobs: + CodeQL-Build: + # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest + runs-on: ubuntu-latest + + permissions: + # required for all workflows + security-events: write + + # only required for workflows in private repositories + # actions: read + # contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2 + # Override language selection by uncommenting this and choosing your languages + # with: + # languages: go, javascript, csharp, python, cpp, java + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below). + - name: Autobuild + uses: github/codeql-action/autobuild@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following + # three lines and modify them (or add more) to build your code if your + # project uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2 From f268f6d7ce69ad579f3fe08a83b1450cb34e22ea Mon Sep 17 00:00:00 2001 From: Daniel <35694200+danielTobon43@users.noreply.github.com> Date: Tue, 12 Jul 2022 19:18:11 -0500 Subject: [PATCH 2/3] set master branch --- .github/workflows/codeql.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 5b6a1a7..65dd6a0 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -2,9 +2,9 @@ name: CodeQL on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + branches: [master] schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) From 0e4af04998eea57d0d964951743a6c81b3fe960f Mon Sep 17 00:00:00 2001 From: Daniel <35694200+danielTobon43@users.noreply.github.com> Date: Tue, 23 Aug 2022 06:26:53 -0500 Subject: [PATCH 3/3] Update codeql.yaml --- .github/workflows/codeql.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 65dd6a0..c706b03 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -16,11 +16,12 @@ on: # │ │ │ │ │ # * * * * * - cron: '30 1 * * 0' + workflow_dispatch: jobs: CodeQL-Build: # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: # required for all workflows @@ -38,8 +39,12 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2 # Override language selection by uncommenting this and choosing your languages - # with: + with: + languages: cpp # languages: go, javascript, csharp, python, cpp, java + + - name: Install PCL + run: sudo apt-get update && sudo apt-get install libpcl-dev # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below).