Skip to content

Commit 0705009

Browse files
authored
fix(SA-675): add packages write permission and fix Dockerfile CMD (#791)
- Add permissions block with packages:write to allow pushing to GitHub Packages registry - Change Dockerfile CMD from shell form to JSON array format to properly handle OS signals
1 parent 34dfc23 commit 0705009

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
1518

1619
steps:
1720
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ COPY package.json package-lock.json ./
55
RUN npm install --production
66
COPY . .
77

8-
CMD cd /app && npm start
8+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)