-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add nightly #6826
Closed
markhermeling
wants to merge
138
commits into
wolfSSL:nightly-snapshot
from
CodeSecure-SE:release/daily
Closed
Add nightly #6826
Changes from 105 commits
Commits
Show all changes
138 commits
Select commit
Hold shift + click to select a range
63bef1a
Add CodeSonar to the workflows
markhermeling ef958b2
Update codesonar.yaml
markhermeling 309d164
Create github.cert.pem
markhermeling adb4f2d
Delete async.yml
markhermeling d5913be
Remove non-CodeSonar workflows
markhermeling 013a385
Merge pull request #1 from markhermeling/markhermeling-patch-1
markhermeling e4a2da9
Small change in workflow
markhermeling ad549f7
Fix access to the CodeSonar conf-file
markhermeling 5a58441
Merge pull request #2 from markhermeling/feature/Add_CodeSonar_workflow
markhermeling e7881a9
Merge remote-tracking branch 'upstream/master' into feature/main-merge
markhermeling 32a138d
Merge pull request #3 from markhermeling:feature/main-merge
markhermeling 297c292
Merge 'upstream/master' into feature/merge-230811
markhermeling d4b15fa
Remove warning class
markhermeling 3c5b8d1
Merge pull request #5 from markhermeling/feature/merge-230811
markhermeling 6627011
Merge 'upstream/master' - 20230831
markhermeling 759b017
Merge remote-tracking branch 'upstream/master' into feature/upstream-…
markhermeling 8f9453d
Merge pull request #9 from markhermeling/feature/upstream-20230905
markhermeling 13680f0
Curve25519/Ed25519: align buffers
SparkiDev d0d1f4d
Thumb2 Curve25519 ASM: add versions that don't use umaal
SparkiDev ddea9bf
Merge branch 'curve25519_thumb2_2' into feature/upstream-20230905
markhermeling fe86854
Change Root Project path to OSS
markhermeling b9058a4
Change property name
markhermeling 05a9c77
Merge pull request #11 from markhermeling/feature/move-CodeSonar-Project
markhermeling 35b3fc9
Merge remote-tracking branch 'SparkiDev/curve25519_thumb2_2' into fea…
markhermeling 8a77a21
Merge pull request #10 from markhermeling/feature/upstream-20230905
markhermeling fd67caa
Merge remote-tracking branch 'upstream/master' into feature/merge-ups…
markhermeling a64fe26
Changes to switch to ci script
markhermeling 7b71d35
small change
markhermeling c0515b6
Fix variable name
markhermeling 3addb02
Fix another var
markhermeling 18e3a8f
Change conf file name
markhermeling 2da0832
*SIGH*
markhermeling 460d917
Merge pull request #12 from markhermeling/feature/merge-upstream-2023…
markhermeling 5239fdb
Merge pull request #13 from markhermeling/feature/ci-simplification
markhermeling 7d01477
Merge remote-tracking branch 'upstream/master' into feature/upstream-…
markhermeling 0833d57
FIx the yaml file (ngx -> wolfssl)
markhermeling 45a413d
Merge pull request #15 from markhermeling/feature/upstream-merge-2023…
markhermeling 161e42d
Start of a workflow that mergers from master
markhermelinggt 3745837
Syntax error
markhermelinggt 6fb4692
Update name
markhermelinggt 183dd15
Spaces
markhermelinggt d1772c1
Remove COdeSonar for now
markhermelinggt 75e4533
Add push
markhermelinggt 9b04dd8
Changes
markhermelinggt f6161b2
Change to run at one time slot and merge
markhermelinggt ad89558
Name change only
markhermelinggt 6000a98
Name change
markhermelinggt d8c82ee
Change time
markhermelinggt 952538a
UTC?
markhermelinggt b74b86e
Run every hour
markhermelinggt ef37323
25
markhermelinggt 656c3d4
Branch indication
markhermelinggt ac25800
30
markhermelinggt d39c686
Merge remote-tracking branch 'upstream/nightly-snapshot' into release…
markhermelinggt a874698
Add nightly
markhermelinggt e9598ec
Add codesonar config file
markhermelinggt bbc492a
Trigger build
markhermelinggt d606d11
Trigger build2
markhermelinggt 36ce8d8
trigger3
markhermelinggt a4c5e77
Trigger4
markhermelinggt d41af13
Trigger5
markhermelinggt 68b2552
Fix for pwd
markhermelinggt 3ddc8db
Update to run on push as well as once per day
markhermelinggt 9926bc9
Add commit hash and make the variables CI system agnostic
markhermelinggt a2cb824
testing new commit ID and more generic var names
markhermelinggt 01f2d64
Run on pull request to daily
markhermelinggt 0fc0de8
Change var name
markhermelinggt ae74083
Fixed commit hash
markhermelinggt 197e88f
Merge pull request #18 from markhermeling/feature/add-commit-id
markhermeling 26ca188
Merge remote-tracking branch 'upstream/nightly-snapshot' into release…
markhermelinggt 709c1bb
Add push and stable conf
markhermelinggt 5cab864
Add stable_results and thorough
markhermelinggt 02c3e5c
Merge from upstream/nightly
markhermeling a496f2a
Merge pull request #19 from markhermeling/feature/add-push-and-stable…
markhermeling cdbeb01
Merge from upstream/nightly
markhermeling bdbce47
buid -> build
markhermelinggt ab03f41
Merge from upstream/nightly
markhermeling 7cad921
Merge from upstream/nightly
markhermeling 5570291
Merge from upstream/nightly
markhermeling 8c6ea55
Move to WolfSSL-Projects
markhermelinggt 9bce1ac
Merge from upstream/nightly
markhermeling 2e9fc07
Merge from upstream/nightly
markhermeling 3d4d263
Fix environment var
markhermelinggt 2bcbec0
Merge from upstream/nightly
markhermeling 45fad4b
Fix path in the final bit
markhermelinggt c8d808c
Add upload
markhermelinggt f76bed2
Use merge upstream action
markhermelinggt ea90a52
Rerun
markhermelinggt 8c3bddd
Push again
markhermelinggt 37b0480
Fix ownership
markhermelinggt a30353d
Remove .git
markhermelinggt 81d9576
Remove url
markhermelinggt 34b4725
Merge remote-tracking branch 'upstream/nightly-snapshot' into release…
markhermelinggt bdbe780
merge from upstream
markhermelinggt 634976e
Merge from upstream/nightly
markhermeling 45f8b84
Merge from upstream/nightly
markhermeling 2a0b5d6
Go back to codesonar-ci main branch
markhermelinggt 582eaf2
Branch change
markhermelinggt cf1c1e4
Merge branch 'release/daily' into feature/add-push-and-stable-conf
markhermeling 13cce0b
Merge pull request #20 from markhermeling/feature/add-push-and-stable…
markhermeling b60d500
Remove everyMerge.yaml
markhermelinggt 71a910b
Remove merge from this script
markhermelinggt 37e947b
Merge script
markhermelinggt db7be95
Fix to reporting
markhermelinggt b4fa045
Small typo
markhermelinggt 4c1f4b0
Forgot authentication
markhermelinggt 705b1a9
typo
markhermelinggt 25974af
Try to automatically merge from daily
markhermelinggt a20c1ee
yaml fixes
markhermelinggt 555ab64
Rename
markhermelinggt e21f7cc
Wrong cron time
markhermelinggt 46b9fa7
run on self-hosted
markhermelinggt 5e95917
Manual trigger
markhermelinggt 7a6c971
Back to schedule. Manual only works on default branch
markhermelinggt d5fd1f8
Merge remote-tracking branch 'upstream/nightly-snapshot' into release…
markhermelinggt 44bc822
Merge branch 'release/daily' of https://github.com/markhermeling/wolf…
markhermelinggt 39297eb
Remove trigger on push/pr
markhermelinggt d06d452
Merge branch 'release/daily' of https://github.com/markhermeling/wolf…
markhermelinggt f6b6796
Switch to 10 mins
markhermelinggt 7828a54
Change job name in daily.yaml
markhermeling abd0b48
Merge branch 'release/daily' of https://github.com/markhermeling/wolf…
markhermelinggt ba8300a
Merge from nightly-snapshot
markhermelinggt b3d9564
Update daily.yaml
markhermeling 69f0c06
Merge from nightly-snapshot
markhermelinggt 0e9b751
Merge from nightly-snapshot
markhermelinggt 05b86de
Merge from nightly-snapshot
markhermelinggt 1af8f23
Turn on prioritization on daily + thorough
markhermelinggt ffe93af
Merge from nightly-snapshot
markhermelinggt b5657dd
Some priority changes as requested
markhermelinggt ecca6cb
Merge branch 'release/daily' of https://github.com/markhermeling/wolf…
markhermelinggt e9bf294
Remove thorough
markhermelinggt 33160a1
Add emailing of stuff
markhermelinggt 81d68ed
Add pulling for the report
markhermelinggt 88d675a
Remove merge.yml
markhermelinggt 96c9f67
Move pwfile cleanup later
markhermelinggt f237659
Merge pull request #22 from markhermeling/feature/mail-integration
markhermeling 7f12911
Merge from nightly-snapshot
markhermelinggt a9049f4
Merge from nightly-snapshot
markhermelinggt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDrzCCApegAwIBAgIQCD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||
06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIttep3Sp+dWOIrWcBAI+0tKIJF | ||
PnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886UAb3LujEV0ls | ||
YSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk | ||
CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Daily Merge and CodeSonar run | ||
on: | ||
push: | ||
branches: | ||
- release/daily | ||
pull_request: | ||
branches: | ||
- 'release/daily' | ||
schedule: | ||
- cron: '17 2 * * *' | ||
|
||
jobs: | ||
Daily_Merge_and_CodeSonar_Analyze: | ||
permissions: write-all | ||
runs-on: self-hosted | ||
container: | ||
image: canuckmh/wolfssl-cso-builder:7.4p0 | ||
credentials: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
env: | ||
CAFILE: ".github/github.cert.pem" | ||
TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
API_URL: https://api.github.com | ||
REQUEST_NUMBER: ${{ github.event.pull_request.number }} | ||
ROOT_TREE: "WolfSSL-Projects/WolfSSL-GitHub" | ||
PROJECT_NAME: "wolfssl" | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
COMMIT_HASH: $GITHUB_SHA | ||
CSONAR_HUB_URL: "https://partnerdemo.codesonar.com" | ||
CSONAR_HUB_USER: "${{ secrets.CSONAR_HUB_USER }}" | ||
CSONAR_HUB_PASSWORD: "${{ secrets.CSONAR_HUB_PASS }}" | ||
CSONAR_CSHOME: /opt/codesonar | ||
CSO_GITHUB: /opt/codesonar-github | ||
REPO_URL: "http://github.com/markhermeling/wolfssl" # the github.repositoryUrl is not an http-link. | ||
TARGET: ${{ github.base_ref }} | ||
IS_PR: ${{ github.event_name }} | ||
steps: | ||
- name: Set parallelism and project name | ||
run: | | ||
echo "PARALLEL=`nproc`" >> $GITHUB_ENV | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Fix ownership warning | ||
run: git config --global --add safe.directory /__w/wolfssl/wolfssl | ||
- name : configure | ||
run: ./autogen.sh ; ./configure --enable-all | ||
- name: Checkout CodeSonar CI-Script | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: CodeSecure-SE/codesonar_ci | ||
path: codesonar-scripts | ||
- name: Build and Analyze | ||
run: python3 codesonar-scripts/build_and_analyze.py codesonar.conf make -j $PARALLEL | ||
- name: Download results | ||
run: $CSONAR_CSHOME/codesonar/bin/codesonar dump_warnings.py --project-file $PROJECT_NAME.prj --hub $CSONAR_HUB_URL --gained-since-previous-analysis --sarif --sarif-detail brief -o diff.sarif | ||
- name: Upload artefact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: SARIF results summary | ||
path: diff.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Daily Merge from upstream/daily-snapshot | ||
on: | ||
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: '47 1 * * *' | ||
|
||
jobs: | ||
merge-upstream: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: release/daily | ||
fetch-depth: 0 | ||
- name: Merge Upstream | ||
uses: exions/merge-upstream@v1 | ||
with: | ||
upstream: wolfssl/wolfssl | ||
upstream-branch: daily-snapshot | ||
branch: release/daily | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#CodeSonar configuration file | ||
|
||
#The following is from stable_results preset: | ||
GLOBAL_FUNCTION_POINTER_MODE = context_sensitive | ||
GLOBAL_TAINT_MODE = context_sensitive | ||
TAINT_PLUS_DP_REFINEMENT_TIMEOUT = 30 | ||
RELAXED_TOPDOWN_FUNCPTR_RESOLUTION = No | ||
|
||
#the following is from thorough preset: | ||
SEARCH_BOUND = 300 | ||
TAINT_SEARCH_BOUND = 300 | ||
PATH_FINDING_EFFORT = 2000 | ||
PATH_SHORTENING_EFFORT = 300 | ||
MAX_ATTEMPTED_SIMILAR_PATHS = 16 | ||
TAINT_MAX_ATTEMPTED_SIMILAR_PATHS = 16 | ||
MAX_SUMMARIES_PER_PROCEDURE = 7 | ||
MAX_MODIFIED_VALUES = 150 | ||
TAINT_MAX_MODIFIED_VALUES = 150 | ||
MAX_CHECKED_INPUTS_PER_PROCEDURE = 100 | ||
TAINT_MAX_CHECKED_INPUTS_PER_PROCEDURE = 100 | ||
MAX_CHECKS_PER_INPUT = 30 | ||
MAX_GLOBAL_CHECK_AGE = 2 | ||
MAX_CHECK_COMPLEXITY = 40 | ||
MAX_EXPRESSION_COMPLEXITY = 48 | ||
TAINT_MAX_EXPRESSION_COMPLEXITY = 80 | ||
TAINT_MAX_SET_CARDINALITY = 20 | ||
TIME_LIMIT_INTRA_EXPLORE = 600 | ||
TIME_LIMIT_INTRA_CLASSIFY = 600 | ||
TIME_LIMIT_INTER_CLASSIFY = 600 | ||
TIME_LIMIT_RESOLVE = 600 | ||
TIME_LIMIT_REFINE = 600 | ||
TIME_LIMIT_LEAK_CLASSIFY = 600 | ||
TIME_LIMIT_LEAK_REFINE = 600 | ||
TIME_LIMIT_PROP_EXHAUSTIVE = 600 | ||
REPORT_IMPLIED_INEQUALITY = Yes | ||
TAINT_CALLSITE_EXPANSION_EFFORT = 3000 | ||
DP_REFINEMENT_EXACT_TIMEOUT = 20 | ||
DP_REFINEMENT_APPROXIMATE_TIMEOUT = 20 | ||
TAINT_PLUS_DP_REFINEMENT_TIMEOUT = 40 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this setup would this test have a dependency on the forked wolfssl repository?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not. It merges from daily-snapshot into my own fork and runs the analysis there. I figured the separation would be nice.