Skip to content

build: Update vulnerabilities actions. #563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
19 changes: 17 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
# It applies 7 days retention policy by default.
RESET_EXAMPLES_CACHE: 0
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
MAIN_PYTHON_VERSION: '3.10'
MAIN_PYTHON_VERSION: "3.10"
LIBRARY_NAME: 'ansys-fluent-visualization'
PYFLUENT_TIMEOUT_FORCE_EXIT: 5
PYFLUENT_LAUNCH_CONTAINER: 1

Expand All @@ -36,6 +37,20 @@
with:
token: ${{ secrets.GITHUB_TOKEN }}

check-vulnerabilities:
name: "Check library vulnerabilities"
runs-on: ubuntu-22.04
steps:
- uses: ansys/actions/check-vulnerabilities@main

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'GitHub CI' step
Uses Step
uses 'ansys/actions/check-vulnerabilities' with ref 'main', not a pinned commit hash
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
python-package-name: ${{ env.LIBRARY_NAME }}
dev-mode: ${{ github.ref != 'refs/heads/main' }}
upload-reports: True
hide-log: false
bandit-configfile: "pyproject.toml"

tests:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
name: Tests and coverage
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -91,7 +106,7 @@
runs-on: [self-hosted, pyfluent]
env:
DOC_DEPLOYMENT_IMAGE_TAG: v25.1.0
DOCUMENTATION_CNAME: 'visualization.fluent.docs.pyansys.com'
DOCUMENTATION_CNAME: "visualization.fluent.docs.pyansys.com"

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.10,<4.0"
python = ">=3.10,<3.14"
importlib-metadata = {version = "^4.0", python = "<3.9"}
ansys-fluent-core = ">=0.33.dev0"
pyvista = ">=0.44.0"
Expand Down
Loading