Bump bandit from 1.9.0 to 1.10.0 in /copi.owasp.org #173
Workflow file for this run
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: Build and Test Copi | |
| on: | |
| pull_request: | |
| paths: | |
| - 'copi.owasp.org/**' | |
| - '.github/workflows/copi-build.yml' | |
| workflow_dispatch: | |
| env: | |
| MIX_ENV: test | |
| POSTGRES_TEST_PWD: ${{ secrets.POSTGRES_TEST_PWD }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test-copi: | |
| runs-on: ubuntu-latest # Or another supported runner | |
| services: | |
| postgres: | |
| image: postgres:14 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: ${{ secrets.POSTGRES_TEST_PWD }} | |
| POSTGRES_DB: copi_test | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: build project | |
| working-directory: copi.owasp.org | |
| run: docker build -f ./Dockerfile . | |
| - name: Cache deps | |
| id: cache-deps | |
| uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 | |
| env: | |
| cache-name: cache-elixir-deps | |
| with: | |
| path: copi.owasp.org/deps | |
| key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-${{ env.cache-name }}- | |
| - name: Install Elixir and Erlang | |
| uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4 | |
| with: | |
| elixir-version: 1.18.2 | |
| otp-version: 27.3.3 | |
| env: | |
| ImageOS: ubuntu24 | |
| - name: Install dependencies | |
| working-directory: copi.owasp.org | |
| run: mix deps.get | |
| - name: Clean the project | |
| working-directory: copi.owasp.org | |
| run: mix clean && rm -rf _build | |
| - name: Compile the project | |
| working-directory: copi.owasp.org | |
| run: mix compile | |
| - name: Reset the DB | |
| working-directory: copi.owasp.org | |
| run: mix ecto.reset | |
| - name: Run tests | |
| working-directory: copi.owasp.org | |
| run: mix test |