Skip to content

Commit 6f7bf4f

Browse files
committed
Merge branch 'dev' into dev-stable
2 parents a696805 + 4cdd2d6 commit 6f7bf4f

File tree

50 files changed

+1056
-1090
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1056
-1090
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
name: "CodeQL"
7+
8+
on:
9+
push:
10+
branches: [dev, dev-stable, master]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [dev]
14+
schedule:
15+
- cron: '0 17 * * 2'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
# Override automatic language detection by changing the below list
26+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27+
language: ['cpp', 'python']
28+
# Learn more...
29+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v2
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
38+
39+
# If this run was triggered by a pull request event, then checkout
40+
# the head of the pull request instead of the merge commit.
41+
- run: git checkout HEAD^2
42+
if: ${{ github.event_name == 'pull_request' }}
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow requires that you have an existing account with codescan.io
2+
# For more information about configuring your workflow,
3+
# read our documentation at https://github.com/codescan-io/codescan-scanner-action
4+
name: CodeScan
5+
6+
on:
7+
push:
8+
branches: [master, main]
9+
pull_request:
10+
# The branches below must be a subset of the branches above
11+
branches: [master, main]
12+
13+
jobs:
14+
CodeScan:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
- name: Cache files
20+
uses: actions/cache@v2
21+
with:
22+
path: |
23+
~/.sonar
24+
key: ${{ runner.os }}-sonar
25+
restore-keys: ${{ runner.os }}-sonar
26+
- name: Run Analysis
27+
uses: codescan-io/codescan-scanner-action@master
28+
with:
29+
login: ${{ secrets.CODESCAN_AUTH_TOKEN }}
30+
organization: ${{ secrets.CODESCAN_ORGANIZATION_KEY }}
31+
projectKey: ${{ secrets.CODESCAN_PROJECT_KEY }}
32+
- name: Upload SARIF file
33+
uses: github/codeql-action/upload-sarif@v1
34+
with:
35+
sarif_file: codescan.sarif

allarch.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ alteriso_version="3.0"
2727
if [[ -f "${defaultconfig}" ]]; then
2828
source "${defaultconfig}"
2929
else
30-
echo "${defaultconfig} was not found."
30+
"${script_path}/tools/msg.sh" -a 'allarch.sh' error "${defaultconfig} was not found."
3131
exit 1
3232
fi
3333

@@ -41,7 +41,7 @@ umask 0022
4141
# Show an INFO message
4242
# $1: message string
4343
msg_info() {
44-
local _msg_opts="-a build.sh"
44+
local _msg_opts="-a allarch.sh"
4545
[[ "${msgdebug}" = true ]] && _msg_opts="${_msg_opts} -x"
4646
[[ "${nocolor}" = true ]] && _msg_opts="${_msg_opts} -n"
4747
"${script_path}/tools/msg.sh" ${_msg_opts} info "${@}"
@@ -50,7 +50,7 @@ msg_info() {
5050
# Show an Warning message
5151
# $1: message string
5252
msg_warn() {
53-
local _msg_opts="-a build.sh"
53+
local _msg_opts="-a allarch.sh"
5454
[[ "${msgdebug}" = true ]] && _msg_opts="${_msg_opts} -x"
5555
[[ "${nocolor}" = true ]] && _msg_opts="${_msg_opts} -n"
5656
"${script_path}/tools/msg.sh" ${_msg_opts} warn "${@}"
@@ -60,7 +60,7 @@ msg_warn() {
6060
# $1: message string
6161
msg_debug() {
6262
if [[ "${debug}" = true ]]; then
63-
local _msg_opts="-a build.sh"
63+
local _msg_opts="-a allarch.sh"
6464
[[ "${msgdebug}" = true ]] && _msg_opts="${_msg_opts} -x"
6565
[[ "${nocolor}" = true ]] && _msg_opts="${_msg_opts} -n"
6666
"${script_path}/tools/msg.sh" ${_msg_opts} debug "${@}"
@@ -71,7 +71,7 @@ msg_debug() {
7171
# $1: message string
7272
# $2: exit code number (with 0 does not exit)
7373
msg_error() {
74-
local _msg_opts="-a build.sh"
74+
local _msg_opts="-a allarch.sh"
7575
[[ "${msgdebug}" = true ]] && _msg_opts="${_msg_opts} -x"
7676
[[ "${nocolor}" = true ]] && _msg_opts="${_msg_opts} -n"
7777
"${script_path}/tools/msg.sh" ${_msg_opts} error "${1}"

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ alteriso_version="3.0"
2727
if [[ -f "${defaultconfig}" ]]; then
2828
source "${defaultconfig}"
2929
else
30-
echo "${defaultconfig} was not found."
30+
"${script_path}/tools/msg.sh" -a 'build.sh' error "${defaultconfig} was not found."
3131
exit 1
3232
fi
3333

channels/cinnamon/airootfs.any/usr/local/bin/alterlinux-welcome-page

Lines changed: 0 additions & 130 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Autologin]
2+
User=%USERNAME%
3+
Session=plasma.desktop

channels/plasma/airootfs.any/etc/skel/.config/kcminputrc

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

0 commit comments

Comments
 (0)