Skip to content

Commit 8b1639e

Browse files
authored
Merge pull request #42 from nyu-devops/update-permissions
Upgrade permissions and Codecov action and add installation step
2 parents 79d3783 + 223decc commit 8b1639e

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/bdd-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- '.vscode/**'
1616
- '**.md'
1717

18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
1822
jobs:
1923
build:
2024
runs-on: ubuntu-latest

.github/workflows/tdd-tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- '.vscode/**'
1616
- '**.md'
1717

18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
1822
jobs:
1923
build:
2024
runs-on: ubuntu-latest
@@ -61,7 +65,12 @@ jobs:
6165
FLASK_APP: "wsgi:app"
6266
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"
6367

64-
- name: Upload code coverage
65-
uses: codecov/[email protected]
66-
with:
68+
- name: Install packages for Codecov to work
69+
run: apt update && apt install -y git curl gpg
70+
71+
- name: Upload coverage reports to Codecov
72+
uses: codecov/codecov-action@v5
73+
with:
6774
token: ${{ secrets.CODECOV_TOKEN }}
75+
slug: nyu-devops/lab-flask-bdd
76+

0 commit comments

Comments
 (0)