Skip to content

Commit

Permalink
Use GITHUB_TOKEN to fetch public images
Browse files Browse the repository at this point in the history
The images are now publicly available, so we no longer need custom auth.

Signed-off-by: Barry Gordon <brrygrdn@github.com>
  • Loading branch information
Jurre Stender authored and Barry Gordon committed Oct 15, 2021
1 parent 59093ca commit 7f03db7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: GPR login
run: docker login docker.pkg.github.com -u x -p ${{ secrets.GPR_TOKEN }}
run: docker login docker.pkg.github.com -u x -p ${{ secrets.GITHUB_TOKEN }}
- name: GRP pull dependabot/dependabot-updater
run: docker pull docker.pkg.github.com/dependabot/dependabot-updater:latest
- name: GRP pull github/dependabot-update-job-proxy
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/image-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const ImageService = {
core.info(`Pulling image ${imageName}...`)
const auth = {
username: 'x',
password: process.env.GPR_TOKEN
password: process.env.GITHUB_TOKEN
}
const stream = await docker.pull(imageName, {authconfig: auth})
await endOfStream(docker, stream)
Expand Down

0 comments on commit 7f03db7

Please sign in to comment.