Skip to content

Commit 6fa9080

Browse files
committed
ci: improve CodeQL script for build steps
Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
1 parent 4030d3f commit 6fa9080

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/codeql.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
fail-fast: false
5252
matrix:
5353
language: ["ruby", "swift"]
54-
# CodeQL supports [ $supported-codeql-languages ]
5554
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
5655

5756
steps:
@@ -60,29 +59,19 @@ jobs:
6059

6160
# Initializes the CodeQL tools for scanning.
6261
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
62+
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
6463
with:
6564
languages: ${{ matrix.language }}
6665
# If you wish to specify custom queries, you can do so here or in a config file.
6766
# By default, queries listed here will override any specified in a config file.
6867
# Prefix the list here with "+" to use these queries and those in the config file.
6968

70-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
71-
# If this step fails, then you should remove it and run the build manually (see below)
72-
- name: Autobuild
73-
uses: github/codeql-action/autobuild@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
74-
75-
# ℹ️ Command-line programs to run using the OS shell.
76-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
77-
78-
# If the Autobuild fails above, remove it and uncomment the following three lines.
79-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
80-
81-
# - run: |
82-
# echo "Run, Build Application using script"
83-
# ./location_of_script_within_repo/buildscript.sh
69+
- run: |
70+
echo "Run, Build Swift Package using script"
71+
bundle install
72+
bundle exec fastlane build
8473
8574
- name: Perform CodeQL Analysis
86-
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
75+
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
8776
with:
8877
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)