Skip to content

Commit

Permalink
bump (#112)
Browse files Browse the repository at this point in the history
* bump

* chore: remove syft

* bump
  • Loading branch information
NishkarshRaj authored Feb 23, 2024
1 parent e7089f1 commit 088fdc7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout Repository to Runner Context
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
Expand Down
28 changes: 3 additions & 25 deletions .github/workflows/super-devsecops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,10 @@ jobs:
yarn install
npx eslint .
continue-on-error: true
syft-source-sbom:
name: SBOM for Source Code
needs: code_quality
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Scan the source code and upload dependency results
uses: anchore/sbom-action@f3355df2ccd621f5873fe3c7c653ebdc5ef1bcb2
with:
path: .
dependency-snapshot: true
format: spdx-json
build:
name: Build
runs-on: ubuntu-latest
needs: syft-source-sbom
needs: code_quality
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
Expand All @@ -59,7 +44,7 @@ jobs:
- name: Checkout Repository to Runner Context
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node version ${{ matrix.node-version }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
Expand All @@ -82,7 +67,7 @@ jobs:
- name: Checkout Repository to Runner Context
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node version ${{ matrix.node-version }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
Expand Down Expand Up @@ -198,10 +183,3 @@ jobs:
run: |
docker build -t ghcr.io/stormsinbrewing/savvy-devsecops .
docker push ghcr.io/stormsinbrewing/savvy-devsecops
- name: Image SBOM Scan with Syft
uses: anchore/sbom-action@f3355df2ccd621f5873fe3c7c653ebdc5ef1bcb2
with:
image: "ghcr.io/stormsinbrewing/savvy-devsecops"
dependency-snapshot: true
format: spdx-json
artifact-name: spdx.docker.json
File renamed without changes.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN yarn install --production
COPY . .
RUN yarn build

FROM nginx:1.25.3-alpine@sha256:f2802c2a9d09c7aa3ace27445dfc5656ff24355da28e7b958074a0111e3fc076 as production
FROM nginx:1.25.4-alpine@sha256:6a2f8b28e45c4adea04ec207a251fd4a2df03ddc930f782af51e315ebc76e9a9 as production
ENV NODE_ENV production
COPY --from=builder /app/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
Expand Down

0 comments on commit 088fdc7

Please sign in to comment.