Skip to content

Commit 8764fc3

Browse files
committed
Add permissions and remove debug statements
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent fbb9f4c commit 8764fc3

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/run-unit-tests-docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
run-unit-tests:
1215
runs-on: ubuntu-24.04

.github/workflows/run-unit-tests-macos.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
env:
1114
POSTGRES_DB: scancodeio
1215
POSTGRES_USER: scancodeio
@@ -39,12 +42,6 @@ jobs:
3942
password: ${{ env.POSTGRES_PASSWORD }}
4043
port: 5432
4144

42-
- run: psql ${{ steps.postgres.outputs.connection-uri }} -c "SELECT 1"
43-
- run: psql service=${{ steps.postgres.outputs.service-name }} -c "SELECT 1"
44-
- run: psql -c "SELECT 1"
45-
env:
46-
PGSERVICE: ${{ steps.postgres.outputs.service-name }}
47-
4845
- name: Install Python dependencies
4946
run: make dev envfile
5047

.github/workflows/run-unit-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
env:
1114
POSTGRES_DB: scancodeio
1215
POSTGRES_USER: scancodeio

0 commit comments

Comments
 (0)