From be7ecca3de432585e3568b523c8478b44ca2a3bf Mon Sep 17 00:00:00 2001 From: John Rofrano Date: Sun, 26 Oct 2025 09:54:17 -0400 Subject: [PATCH 1/2] Upgrade Codecov action and add installation step Updated Codecov action to v5 and added package installation step. --- .github/workflows/tdd-tests.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tdd-tests.yml b/.github/workflows/tdd-tests.yml index 793fbc0..a01bb7c 100644 --- a/.github/workflows/tdd-tests.yml +++ b/.github/workflows/tdd-tests.yml @@ -15,6 +15,10 @@ on: - '.vscode/**' - '**.md' +permissions: + contents: read + pull-requests: write + jobs: build: runs-on: ubuntu-latest @@ -61,7 +65,12 @@ jobs: FLASK_APP: "wsgi:app" DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb" - - name: Upload code coverage - uses: codecov/codecov-action@v3.1.4 - with: + - name: Install packages for Codecov to work + run: apt update && apt install -y git curl gpg + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: token: ${{ secrets.CODECOV_TOKEN }} + slug: nyu-devops/lab-flask-bdd + From 223decc8fec781a5a82abd1b0e436fdd29915de7 Mon Sep 17 00:00:00 2001 From: John Rofrano Date: Sun, 26 Oct 2025 09:57:33 -0400 Subject: [PATCH 2/2] Update BDD tests workflow with permissions Added permissions for contents and pull-requests. --- .github/workflows/bdd-tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/bdd-tests.yml b/.github/workflows/bdd-tests.yml index 7f3fe4d..567de5c 100644 --- a/.github/workflows/bdd-tests.yml +++ b/.github/workflows/bdd-tests.yml @@ -15,6 +15,10 @@ on: - '.vscode/**' - '**.md' +permissions: + contents: read + pull-requests: write + jobs: build: runs-on: ubuntu-latest