Merge pull request #283 from Nobu19800/feature/retryaccess #151
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
| name: OpenRTM-aist-Python SAST | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| # Node.js 24 への強制移行オプションを追加 | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 bandit | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Run bandit | |
| run: | | |
| # セキュリティチェック -r は再帰的実行、-ll は中レベル以上のリスクを報告 | |
| bandit -r . -ll --exit-zero | |
| - name: Lint with flake8 | |
| run: | | |
| # 構文エラーや未定義の名前をチェック | |
| # 今回新しく出た F821 (self), F824 (unused) も追加 | |
| flake8 . --count --select=E9,F63,F7,F82 --ignore=F821,F824 --show-source --statistics | |
| # 以前無視していた E501, E265, E402 に加え、 | |
| # 今回新しく出た F821 (self), F824 (unused) も追加 | |
| flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 \ | |
| --ignore=E501,E265,E402,F821,F824 --statistics | |