Skip to content

Commit 410ce4c

Browse files
committed
Review workflows
1 parent 5e71894 commit 410ce4c

File tree

3 files changed

+41
-129
lines changed

3 files changed

+41
-129
lines changed

.github/workflows/build_maven_package.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,6 @@ jobs:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6565
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
6666
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
67-
# snyk
68-
- name: Build a Docker image
69-
run: docker build -t fj-doc-playground-quarkus fj-doc-playground-quarkus
70-
- name: Run Snyk to check Docker image for vulnerabilities
71-
# Snyk can be used to break the build when it detects vulnerabilities.
72-
# In this case we want to upload the issues to GitHub Code Scanning
73-
continue-on-error: true
74-
uses: snyk/actions/docker@master
75-
env:
76-
# In order to use the Snyk Action you will need to have a Snyk API token.
77-
# More details in https://github.com/snyk/actions#getting-your-snyk-token
78-
# or you can signup for free at https://snyk.io/login
79-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
80-
with:
81-
image: fj-doc-playground-quarkus
82-
args: --file=fj-doc-playground-quarkus/Dockerfile
83-
- name: Upload result to GitHub Code Scanning
84-
uses: github/codeql-action/upload-sarif@main
85-
with:
86-
sarif_file: snyk.sarif
8767

8868
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
8969
- name: Update dependency graph

.github/workflows/codeql-analysis.yml

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
# CodeQL
2+
#
3+
# version 1.0.0
4+
#
5+
# see : https://universe.fugerit.org/src/docs/conventions/workflows/codeql-analysis.html
6+
17
# For most projects, this workflow file will not need changing; you simply need
28
# to commit it to your repository.
39
#
410
# You may wish to alter this file to override the set of languages analyzed,
511
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
12+
1213
name: "CodeQL"
1314

1415
on:
@@ -39,38 +40,45 @@ jobs:
3940
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4041

4142
steps:
42-
- name: Checkout repository
43-
uses: actions/checkout@v3
43+
- name: Checkout repository
44+
uses: actions/checkout@main
45+
46+
- name: Set up JDK 17
47+
uses: actions/setup-java@main
48+
with:
49+
java-version: '17'
50+
distribution: 'corretto'
51+
cache: 'maven'
4452

45-
# Initializes the CodeQL tools for scanning.
46-
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v2
48-
with:
49-
languages: ${{ matrix.language }}
50-
# If you wish to specify custom queries, you can do so here or in a config file.
51-
# By default, queries listed here will override any specified in a config file.
52-
# Prefix the list here with "+" to use these queries and those in the config file.
53+
# Initializes the CodeQL tools for scanning.
54+
- name: Initialize CodeQL
55+
uses: github/codeql-action/init@main
56+
with:
57+
languages: ${{ matrix.language }}
58+
# If you wish to specify custom queries, you can do so here or in a config file.
59+
# By default, queries listed here will override any specified in a config file.
60+
# Prefix the list here with "+" to use these queries and those in the config file.
5361

54-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55-
# queries: security-extended,security-and-quality
62+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
63+
# queries: security-extended,security-and-quality
5664

5765

58-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59-
# If this step fails, then you should remove it and run the build manually (see below)
60-
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v2
66+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
67+
# If this step fails, then you should remove it and run the build manually (see below)
68+
- name: Autobuild
69+
uses: github/codeql-action/autobuild@main
6270

63-
# ℹ️ Command-line programs to run using the OS shell.
64-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
71+
# ℹ️ Command-line programs to run using the OS shell.
72+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6573

66-
# If the Autobuild fails above, remove it and uncomment the following three lines.
67-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
74+
# If the Autobuild fails above, remove it and uncomment the following three lines.
75+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6876

69-
# - run: |
70-
# echo "Run, Build Application using script"
71-
# ./location_of_script_within_repo/buildscript.sh
77+
# - run: |
78+
# echo "Run, Build Application using script"
79+
# ./location_of_script_within_repo/buildscript.sh
7280

73-
- name: Perform CodeQL Analysis
74-
uses: github/codeql-action/analyze@v2
75-
with:
76-
category: "/language:${{matrix.language}}"
81+
- name: Perform CodeQL Analysis
82+
uses: github/codeql-action/analyze@main
83+
with:
84+
category: "/language:${{matrix.language}}"

.github/workflows/codeql.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)