Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/environment-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ runs:
echo "===== Cache Content Summary ====="
du -sh "$RUNNER_TEMP/dvledtx-deps" || true

- name: Save environment cache (main branch only)
if: steps.env-cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/main'
- name: Save environment cache (main and dev branches)
if: steps.env-cache.outputs.cache-hit != 'true' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main
- dev
tags:
- '*'
workflow_dispatch:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
coverity:
name: Coverity Scan
name: Coverity Scan (${{ github.event.repository.default_branch }})
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
Expand All @@ -36,10 +36,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
ref: refs/heads/${{ github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: false

- name: Resolve scanned commit
id: scanned
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"

- name: Environment check
uses: ./.github/actions/environment-check

Expand All @@ -55,3 +59,6 @@ jobs:
with:
sarif_file: reports/coverity-results.sarif
category: coverity
# The workflow runs on the default branch, so the scanned ref must be stated explicitly.
ref: refs/heads/${{ github.event.repository.default_branch }}
sha: ${{ steps.scanned.outputs.sha }}
18 changes: 9 additions & 9 deletions .github/workflows/daily_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
build:
name: Daily Build
name: Daily Build (${{ github.event.repository.default_branch }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
ref: refs/heads/${{ github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: false

Expand Down Expand Up @@ -72,12 +72,12 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: DVLED-SW-TK-DailyBuild-${{ github.run_id }}
name: DVLED-SW-TK-DailyBuild-${{ github.event.repository.default_branch }}-${{ github.run_id }}
path: ${{ github.workspace }}/reports/
retention-days: 30

afl-fuzz:
name: Daily AFL Fuzz
name: Daily AFL Fuzz (${{ github.event.repository.default_branch }})
runs-on: ubuntu-latest
# 2h of fuzzing plus headroom for dependency install and the harness build.
timeout-minutes: 138
Expand All @@ -88,7 +88,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
ref: refs/heads/${{ github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: false

Expand All @@ -101,12 +101,12 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: afl-fuzz-results-${{ github.run_id }}
name: afl-fuzz-results-${{ github.event.repository.default_branch }}-${{ github.run_id }}
path: fuzz/findings/
retention-days: 14

libfuzzer:
name: Daily libFuzzer
name: Daily libFuzzer (${{ github.event.repository.default_branch }})
runs-on: ubuntu-latest
# max-seconds applies per sanitizer mode (ASan + UBSan), so the fuzzing
# itself takes ~2h; the rest covers the two builds.
Expand All @@ -118,7 +118,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
ref: refs/heads/${{ github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: false

Expand All @@ -131,7 +131,7 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: libfuzzer-results-${{ github.run_id }}
name: libfuzzer-results-${{ github.event.repository.default_branch }}-${{ github.run_id }}
path: |
fuzz/libfuzzer_corpus/
fuzz/ubsan_corpus/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
- dev

workflow_dispatch:

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main
- dev
schedule:
# Weekly on Monday at 06:30 UTC
- cron: '30 6 * * 1'
Expand Down Expand Up @@ -40,7 +41,8 @@ jobs:
with:
results_file: scorecard-results.sarif
results_format: sarif
publish_results: true
# The Scorecard API only accepts results published from the default branch.
publish_results: ${{ github.ref_name == github.event.repository.default_branch }}
repo_token: ${{ secrets.SCORECARD_TOKEN }}

- name: Upload SARIF to Security tab
Expand Down
Loading