Skip to content

Commit d29a770

Browse files
committed
try to add code signing
1 parent 66bf0eb commit d29a770

File tree

1 file changed

+34
-6
lines changed

1 file changed

+34
-6
lines changed

.github/workflows/python-app.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python application
4+
name: VW_Flash Build and Sign
5+
6+
permissions:
7+
id-token: write
8+
contents: read
59

610
defaults:
711
run:
@@ -11,18 +15,21 @@ on:
1115
push:
1216
branches:
1317
- master
14-
tags:
15-
- '*'
16-
pull_request:
17-
branches: [ master ]
1818

1919
jobs:
2020
build:
21-
21+
environment: Sign
2222
runs-on: windows-latest
2323

2424
steps:
2525
- uses: actions/checkout@v4
26+
27+
- name: Azure login
28+
uses: azure/login@v1
29+
with:
30+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
31+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
32+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2633
- name: Set up Python 3.13
2734
uses: actions/setup-python@v5
2835
with:
@@ -44,6 +51,27 @@ jobs:
4451
- name: pyinstaller
4552
run: |
4653
pyinstaller VW_Flash_GUI.spec
54+
- name: Sign files with Trusted Signing
55+
uses: azure/trusted-signing-action@v0
56+
with:
57+
endpoint: https://eus.codesigning.azure.net/
58+
trusted-signing-account-name: OpenSource
59+
certificate-profile-name: OpenSource
60+
files-folder: ${{ github.workspace }}\dist
61+
files-folder-filter: exe,dll
62+
file-digest: SHA256
63+
timestamp-rfc3161: http://timestamp.acs.microsoft.com
64+
timestamp-digest: SHA256
65+
exclude-environment-credential: true
66+
exclude-workload-identity-credential: true
67+
exclude-managed-identity-credential: true
68+
exclude-shared-token-cache-credential: true
69+
exclude-visual-studio-credential: true
70+
exclude-visual-studio-code-credential: true
71+
exclude-azure-cli-credential: false
72+
exclude-azure-powershell-credential: true
73+
exclude-azure-developer-cli-credential: true
74+
exclude-interactive-browser-credential: true
4775
- name: Archive EXE artifacts
4876
uses: actions/upload-artifact@v4
4977
with:

0 commit comments

Comments
 (0)