Skip to content

Commit

Permalink
fix(github): fix github enterprise authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabertelli committed Oct 25, 2023
1 parent e4fa2b5 commit da208a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/tag-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,3 @@ jobs:
owner: krateoplatformops
repository: helm-charts
branch: gh-pages
- name: Webhook
uses: indiesdev/curl@v1.1
with:
url: ${{ secrets.WEBHOOK_URL }}
method: 'POST'
timeout: 5000
headers: '{ "x-token": "${{ secrets.WEBHOOK_TOKEN }}" }'
body: '{ "project": "${{ github.event.repository.name }}", "tag": "${{ steps.tagger.outputs.VERSION_TAG }}" }'
6 changes: 3 additions & 3 deletions controllers/auth/read.auth.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ router.get('/githubcallback', async (req, res, next) => {

logger.debug(user)

// res.cookie(envConstants.COOKIE_NAME, jwtHelpers.sign(user), cookieConstants)
// res.redirect(global.redirect)
// res.status(200)
res.cookie(envConstants.COOKIE_NAME, jwtHelpers.sign(user), cookieConstants)
res.redirect(global.redirect)
res.status(200)
} catch (err) {
next(err)
}
Expand Down

0 comments on commit da208a2

Please sign in to comment.