Skip to content

Commit 3facefe

Browse files
ci: improving CodeQL (#2016)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent c166c74 commit 3facefe

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

.github/codeql-config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
paths:
33
- src
44
- tests
5-
paths-ignore:
6-
- '**/failing_script.py'

.github/workflows/ci_cd.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ concurrency:
2525
group: ${{ github.workflow }}-${{ github.ref }}
2626
cancel-in-progress: true
2727

28-
jobs:
28+
permissions:
29+
contents: write
30+
pull-requests: write
31+
packages: read
2932

33+
jobs:
3034
update-changelog:
3135
name: "Update CHANGELOG (on release)"
3236
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')

.github/workflows/nightly_docker_test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ concurrency:
3232
group: ${{ github.workflow }}-${{ github.ref }}
3333
cancel-in-progress: true
3434

35+
permissions:
36+
contents: write
37+
packages: write
38+
3539
jobs:
3640

3741
manifests:

doc/changelog.d/2016.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
improving CodeQL

tests/integration/files/disco_scripts/failing_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
u_range = Interval.Create(0, 2*math.pi)
66
v_range = Interval.Create(-math.pi/2, math.pi/2)
77
box = BoxUV.Create(u_range, v_range)
8-
;
8+
import numpy as np
99
b = Body.CreateSurfaceBody(sphere, box)
1010
db = DesignBody.Create(doc.MainPart, "sphere", b)
1111

0 commit comments

Comments
 (0)