Skip to content

Commit 52f0daf

Browse files
committed
Quick : merging changes from develop
1 parent 0038ddf commit 52f0daf

File tree

13 files changed

+1401
-0
lines changed

13 files changed

+1401
-0
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project to implement
4+
title: "[Feature] - Title"
5+
labels: enhancement
6+
assignees: vonericsen
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
21+
You may also include examples of other software that implement this feature
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Question or Request for Help
3+
about: For questions or needing help that does not match other issue types
4+
title: "[Question]"
5+
labels: question
6+
assignees: vonericsen
7+
8+
---
9+
10+
**Describe what you need help with**
11+
A clear and concise description of what you need help with or what your question is
12+
13+
**Any additional details**
14+
If this relates to a specific product or interface, put that here.
15+
If you have tried any tools (openSeaChest or others), what tool did you use, options, and what was the output?
16+
17+
**Screenshots**
18+
If applicable, add screenshots to help explain what is going on.
19+
20+
**Environment**
21+
Any details you can share about where you need help or what your environment is if this applies.
22+
- OS: [e.g. Windows, Linux, etc]
23+
- Version [e.g. Win11, Ubuntu, etc]
24+
25+
**Additional context**
26+
Add any other context about the problem here that may apply and isn't already covered above.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Software Bug Report
3+
about: Report a bug for us to fix in openSeaChest
4+
title: "[BUG] - Title"
5+
labels: bug
6+
assignees: vonericsen
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Verbose Output**
27+
Please attach the verbose output from the command you ran to help us review the raw drive responses.
28+
For firmware updates or read/write operations, `-v3` is fine. For other operations, use `-v4`.
29+
Ex: `openSeaChest_SMART -d <handle> -i -v4 | tee verboseInfo.txt`
30+
31+
**Desktop (please complete the following information):**
32+
- OS: [e.g. Windows/Linux]
33+
- Version [e.g. 22]
34+
35+
Hint: All `openSeaChest` tools support the `--version` option which can report this for you.
36+
37+
**Additional context**
38+
Add any other context about the problem here that would be helpful to understand.
39+
This can be a big picture overview of what you are trying to do or what background information led you to running these openSeaChest tools.
40+
Does another tool run this same operation successfully? (e.g.smartctl, hdparm, sdparm, camcontrol, etc)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: USB Compatibility Issue
3+
about: Report a compatibility issue with a USB adapter
4+
title: "[USB] - Title"
5+
labels: USB
6+
assignees: vonericsen
7+
8+
---
9+
10+
**output of openSeaChest_PassthroughTest**
11+
Attach the output from our automated openSeaChest_PassthroughTest tool to help fix this quicker.
12+
Ex: `openSeaChest_PassthroughTest -d <handle> --runPTTest`
13+
14+
**Screenshots**
15+
If applicable, add screenshots to help explain your problem.
16+
17+
**Desktop (please complete the following information):**
18+
- OS: [e.g. Windows/Linux]
19+
- Version [e.g. 22]
20+
21+
Hint: All `openSeaChest` tools support the `--version` option which can report this for you.
22+
23+
**Additional context**
24+
Add any other context about the problem here that would be helpful to understand.
25+
If this issue is specific to a specific option, please tell us what it was.

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
version: 2
3+
updates:
4+
- package-ecosystem: "gitsubmodule"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
ignore:
9+
- dependency-name: "opensea-common"
10+
- dependency-name: "opensea-transport"
11+
- dependency-name: "opensea-operations"
12+
- package-ecosystem: "github-actions"
13+
directory: "/.github/workflows"
14+
schedule:
15+
interval: "weekly"

.github/workflows/c-cpp.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
name: C/C++ CI
3+
4+
on:
5+
push:
6+
branches: [ develop, master, release/*, feature/*, hotfix/* ]
7+
pull_request:
8+
branches: [ develop ]
9+
10+
jobs:
11+
build:
12+
name: ${{ matrix.config.name }}
13+
runs-on: ${{ matrix.config.os }}
14+
strategy:
15+
fail-fast: false # so that if one config fails, other won't be cancelled automatically
16+
matrix:
17+
config:
18+
- {
19+
name: "Windows GCC",
20+
os: windows-latest,
21+
builddir: "Make/gccWin",
22+
makefile: "Makefile.gccWin",
23+
release_name: "win-x86_64-gcc",
24+
release_extension: ".zip",
25+
archive_command: "7z a -tzip -mmt"
26+
}
27+
- {
28+
name: "Ubuntu GCC",
29+
os: ubuntu-latest,
30+
builddir: "Make/gcc",
31+
makefile: "Makefile",
32+
release_name: "linux-x86_64-gcc",
33+
release_extension: ".tar.xz",
34+
archive_command: "tar cvfJ"
35+
}
36+
defaults:
37+
run:
38+
shell: bash
39+
40+
steps:
41+
- uses: actions/checkout@v5
42+
with:
43+
submodules: recursive
44+
45+
- name: Escape backslash in branch name
46+
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
47+
48+
- name: Setting release name
49+
env:
50+
DESTDIR: ${{ format('openSeaChest-{0}-{1}', env.BRANCH_NAME, matrix.config.release_name) }}
51+
run: |
52+
echo "DESTDIR=${DESTDIR}" >> $GITHUB_ENV
53+
54+
- name: Add Mingw-w64 to path
55+
if: startsWith(matrix.config.name, 'Windows GCC')
56+
run: |
57+
echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
58+
59+
- name: Make buildjsonc.sh executable
60+
run: chmod +x Make/buildjsonc.sh
61+
62+
- name: make
63+
working-directory: ${{ matrix.config.builddir }}
64+
run: |
65+
make release -f ${{ matrix.config.makefile }}
66+
67+
- name: Packing release
68+
env:
69+
ARCHIVE_EXT: ${{ matrix.config.release_extension }}
70+
run: |
71+
mkdir build
72+
cd build
73+
${{ matrix.config.archive_command }} "${DESTDIR}${ARCHIVE_EXT}" ../${{ matrix.config.builddir }}/openseachest_exes
74+
75+
- name: Uploading artifacts
76+
uses: actions/upload-artifact@v5
77+
with:
78+
name: ${{ format('{0}', env.DESTDIR) }}
79+
path: ${{ format('./build/{0}{1}', env.DESTDIR, matrix.config.release_extension) }}
80+
81+
# - name: Publish release
82+
# if: ${{ startsWith(github.ref, 'refs/tags/v') && matrix.config.publish_release }}
83+
# uses: softprops/action-gh-release@v2
84+
# with:
85+
# files: ${{ format('./build/{0}{1}', env.DESTDIR, matrix.config.release_extension) }}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# For most projects, this workflow file will not need changing; you simply need
3+
# to commit it to your repository.
4+
#
5+
# You may wish to alter this file to override the set of languages analyzed,
6+
# or to provide custom queries or build logic.
7+
name: "CodeQL"
8+
9+
on:
10+
push:
11+
branches: [develop, master]
12+
pull_request:
13+
# The branches below must be a subset of the branches above
14+
branches: [develop]
15+
schedule:
16+
- cron: '0 12 * * 6'
17+
18+
jobs:
19+
analyze:
20+
name: Analyze
21+
runs-on: ${{ matrix.config.os }}
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']
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+
config:
31+
- {
32+
name: "Windows MSVC x64",
33+
os: windows-latest,
34+
cc: "cl.exe",
35+
cxx: "cl.exe",
36+
arch: "x64",
37+
meson_opts: "-Db_vscrt=static_from_buildtype"
38+
}
39+
- {
40+
name: "Windows MSVC x86",
41+
os: windows-latest,
42+
cc: "cl.exe",
43+
cxx: "cl.exe",
44+
arch: "x64_x86",
45+
meson_opts: "-Db_vscrt=static_from_buildtype"
46+
}
47+
- {
48+
name: "Ubuntu GCC",
49+
os: ubuntu-latest,
50+
cc: "gcc",
51+
cxx: "g++"
52+
}
53+
- {
54+
name: "Ubuntu Clang",
55+
os: ubuntu-latest,
56+
cc: "clang",
57+
cxx: "clang++"
58+
}
59+
60+
steps:
61+
- name: Checkout repository
62+
uses: actions/checkout@v5
63+
with:
64+
# We must fetch at least the immediate parents so that if this is
65+
# a pull request then we can checkout the head.
66+
fetch-depth: 2
67+
submodules: recursive
68+
69+
- name: Settings vars for MSVC
70+
if: startsWith(matrix.config.name, 'Windows MSVC')
71+
uses: ilammy/msvc-dev-cmd@v1
72+
with:
73+
arch: ${{ matrix.config.arch }}
74+
75+
# If this run was triggered by a pull request event, then checkout
76+
# the head of the pull request instead of the merge commit.
77+
# - run: git checkout HEAD^2
78+
# if: ${{ github.event_name == 'pull_request' }}
79+
80+
# Initializes the CodeQL tools for scanning.
81+
- name: Initialize CodeQL
82+
uses: github/codeql-action/init@v4
83+
with:
84+
languages: ${{ matrix.language }}
85+
# If you wish to specify custom queries, you can do so here or in a config file.
86+
# By default, queries listed here will override any specified in a config file.
87+
# Prefix the list here with "+" to use these queries and those in the config file.
88+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
89+
90+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
91+
# If this step fails, then you should remove it and run the build manually (see below)
92+
#- name: Autobuild
93+
# uses: github/codeql-action/autobuild@v1
94+
95+
# ℹ️ Command-line programs to run using the OS shell.
96+
# 📚 https://git.io/JvXDl
97+
98+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
99+
# and modify them (or add more) to build your code if your project
100+
# uses a compiled language
101+
102+
- name: Configuring and compiling with meson
103+
env:
104+
CC: ${{ matrix.config.cc }}
105+
CXX: ${{ matrix.config.cxx }}
106+
run: |
107+
pip install meson ninja
108+
meson setup build -Dprefix=/ -Dmandir=/man -Dbindir=/ ${{ matrix.config.meson_opts }} --buildtype=release
109+
110+
- name: Perform CodeQL Analysis
111+
uses: github/codeql-action/analyze@v4

.github/workflows/flawfinder.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: flawfinder
7+
8+
on:
9+
push:
10+
branches: [ "develop", "master", "release/*" ]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [ "develop" ]
14+
schedule:
15+
- cron: '39 23 * * 1'
16+
17+
jobs:
18+
flawfinder:
19+
name: Flawfinder
20+
runs-on: ubuntu-latest
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v5
28+
29+
- name: flawfinder_scan
30+
uses: david-a-wheeler/flawfinder@c57197cd6061453f10a496f30a732bc1905918d1
31+
with:
32+
arguments: '--sarif ./'
33+
output: 'flawfinder_results.sarif'
34+
35+
- name: Upload analysis results to GitHub Security tab
36+
uses: github/codeql-action/upload-sarif@v4
37+
with:
38+
sarif_file: ${{github.workspace}}/flawfinder_results.sarif

0 commit comments

Comments
 (0)