diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index a6dc6f3fe..17b8fbb86 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -21,11 +21,6 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/stackrox/infra - - name: Get NPM package access - env: - GITHUB_TOKEN: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }} - run: echo "//npm.pkg.github.com/:_authToken=\"$GITHUB_TOKEN\"" > ~/.npmrc - - name: Setup env run: | GOPATH="$GITHUB_WORKSPACE/go" diff --git a/Makefile b/Makefile index 9ccf12770..86f3a0a9e 100644 --- a/Makefile +++ b/Makefile @@ -150,7 +150,7 @@ ui: .PHONY: image image: - docker build . -t $(IMAGE) -f image/Dockerfile --secret id=npmrc,src=${HOME}/.npmrc + docker build . -t $(IMAGE) -f image/Dockerfile .PHONY: push push: diff --git a/image/Dockerfile b/image/Dockerfile index 65bbbead9..8d030261d 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -10,7 +10,7 @@ FROM node:23.8.0 as ui-builder COPY ui ui -RUN --mount=type=secret,id=npmrc,target=/root/.npmrc make -C ui all +RUN make -C ui all FROM alpine:3.21.3 as app diff --git a/ui/.npmrc b/ui/.npmrc deleted file mode 100644 index 5c6c7a80a..000000000 --- a/ui/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@stackrox:registry=https://npm.pkg.github.com