Improve error reporting when starting gateway service#72
Open
eliabieri wants to merge 4 commits into
Open
Conversation
Comment on lines
+8
to
+38
| runs-on: windows-latest | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python (32-bit) | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.8 | ||
| architecture: x86 | ||
| - name: Install Poetry | ||
| uses: snok/install-poetry@v1 | ||
| with: | ||
| version: 1.3.2 | ||
| - name: Register gbda_aut.dll | ||
| run: | | ||
| Copy-Item .\lib\gbda_aut.dll C:\Windows\System32\ | ||
| regsvr32 /s C:\Windows\System32\gbda_aut.dll | ||
| shell: pwsh | ||
| - name: Install dependencies | ||
| run: poetry install | ||
| - name: Build executables | ||
| run: scripts/build_executables.ps1 | ||
| - name: Create GitHub Release | ||
| uses: ncipollo/release-action@v1 | ||
| with: | ||
| artifacts: | | ||
| dist/OpenOpcCli.exe | ||
| dist/OpenOpcServer.exe | ||
| dist/OpenOpcService.exe No newline at end of file |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 12 months ago
To fix the issue, we will add a permissions block at the workflow level to explicitly define the least privileges required for the workflow. Based on the steps in the workflow:
- The
actions/checkoutstep requirescontents: readto check out the repository. - The
ncipollo/release-actionstep requirescontents: readandcontents: writeto create a GitHub release and upload artifacts.
We will add the following permissions block at the root of the workflow:
permissions:
contents: writeThis ensures that the workflow has only the necessary permissions to perform its tasks.
Suggested changeset
1
.github/workflows/build_release.yml
| @@ -1,2 +1,4 @@ | ||
| name: Build Release | ||
| permissions: | ||
| contents: write | ||
| on: |
Copilot is powered by AI and may make mistakes. Always verify output.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.