Skip to content

Commit

Permalink
Use embeded GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Aihara committed Feb 5, 2020
1 parent 7a4eea8 commit b377676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
github_token: ${{ secrets.TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
golangci_lint_flags: "--exclude-use-default=false"
- name: kubeval
uses: instrumenta/kubeval-action@master
Expand Down Expand Up @@ -53,5 +53,5 @@ jobs:
IMAGE_PATH=docker.pkg.github.com/${OWNER}/${REPOSITORY_NAME}/${IMAGE_NAME}
TAG=$(git rev-parse --short HEAD)
docker build -t $IMAGE_PATH:$TAG .
docker login docker.pkg.github.com -u $OWNER -p ${{ secrets.TOKEN }}
docker login docker.pkg.github.com -u $OWNER -p ${{ secrets.GITHUB_TOKEN }}
docker push $IMAGE_PATH:$TAG
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
IMAGE_PATH=docker.pkg.github.com/${OWNER}/${REPOSITORY_NAME}/${IMAGE_NAME}
TAG=${GITHUB_REF##*/}
docker build -t $IMAGE_PATH:$TAG .
docker login docker.pkg.github.com -u $OWNER -p ${{ secrets.TOKEN }}
docker login docker.pkg.github.com -u $OWNER -p ${{ secrets.GITHUB_TOKEN }}
docker push $IMAGE_PATH:$TAG

0 comments on commit b377676

Please sign in to comment.