Skip to content

Commit

Permalink
changes to GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jan 25, 2024
1 parent f91f27b commit 759566d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
ruby-version: '3.2'
bundler-cache: true
env:
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{secrets.GH_PACKAGE_READ_TOKEN}}
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{ secrets.GITHUB_TOKEN }}
- name: Run linter for Ruby
run: bundle exec standardrb
- name: Run tests
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ FROM development AS production
COPY --chown=${UID}:${GID} . /app
ENV BUNDLE_WITHOUT development:test

RUN --mount=type=secret,id=gh_package_read_token,uid=1000 \
read_token="$(cat /run/secrets/gh_package_read_token)" \
&& BUNDLE_RUBYGEMS__PKG__GITHUB__COM=${read_token} bundle install
RUN --mount=type=secret,id=github_token,uid=1000 \
github_token="$(cat /run/secrets/github_token)" \
&& BUNDLE_RUBYGEMS__PKG__GITHUB__COM=${github_token} bundle install

RUN npm ci

Expand Down

0 comments on commit 759566d

Please sign in to comment.