Skip to content

Commit

Permalink
add to ZAP rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jgadsden committed Nov 28, 2024
1 parent 336882d commit 25a6e79
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/.zap-rules-web.tsv
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
10110 OUTOFSCOPE .*vendor.*\.js
10110 OUTOFSCOPE .*graph-test.*\.js
10062 OUTOFSCOPE .*_bom\..*
10094 OUTOFSCOPE .*_bom\..*
10099 OUTOFSCOPE .*vendor.*\.js
10099 OUTOFSCOPE .*diagram-edit.*\.js
10099 OUTOFSCOPE .*app.*\.js
10110 OUTOFSCOPE .*vendor.*\.js
10110 OUTOFSCOPE .*graph-test.*\.js
10110 OUTOFSCOPE .*diagram-edit.*\.js
10062 OUTOFSCOPE .*_bom\..*
10094 OUTOFSCOPE .*_bom\..*
10110 OUTOFSCOPE .*jquery\.min\.js
10003 IGNORE Javascript libraries handled by dependabot
10055 IGNORE CSP: script-src unsafe-eval
10063 IGNORE Permissions Policy Header Not Set
40039 IGNORE Web Cache Deception
2 changes: 1 addition & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ jobs:
-e ENCRYPTION_KEYS='${{ secrets.CI_SESSION_ENCRYPTION_KEYS }}' \
-e NODE_ENV='development' \
-e SERVER_API_PROTOCOL='http' \
${{ env.IMAGE_NAME }}
${{ env.IMAGE_NAME }}-arm64
- name: Checkout
uses: actions/checkout@v4.2.0
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/release-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Windows release

on:
workflow_dispatch:

# for security reasons the github actions are pinned to specific release versions
jobs:

desktop_windows:
name: Windows installer
runs-on: windows-latest
defaults:
run:
working-directory: td.vue

steps:
- name: Check out
uses: actions/checkout@v4.2.0

- name: Use node LTS 20.14.0
uses: actions/setup-node@v4.1.0
with:
node-version: '20.14.0'

- name: Cache NPM dir
uses: actions/cache@v4.1.1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install clean packages
run: npm clean-install

- name: Build Windows executable
# code signing done later using Extended Verification (EV) with a hardware key
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build:desktop -- --windows --publish always

- name: Save SBOM artifact
uses: actions/upload-artifact@v4.4.0
with:
name: sboms-desktop-windows-site
path: './td.vue/dist-desktop/bundled/.sbom/*'
include-hidden-files: true
if-no-files-found: error
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ name: Release pipeline
on:
push:
tags:
- v2.?.?
- v2.?.?-RC?
- v2.?.*
workflow_dispatch:

env:
Expand Down Expand Up @@ -159,7 +158,9 @@ jobs:

- name: Build Windows executable
# code signing done later using Extended Verification (EV) with a hardware key
run: npm run build:desktop -- --windows --publish never
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build:desktop -- --windows --publish always

- name: Save SBOM artifact
uses: actions/upload-artifact@v4.4.0
Expand Down

0 comments on commit 25a6e79

Please sign in to comment.