Skip to content

Commit

Permalink
[fix] Workflow Permission in GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Jul 17, 2024
1 parent b1c380d commit e64a6ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
- v*
env:
ARTIFACT_PATH: /tmp/artifact.tar
BOX_NAME: next-bootstrap-ts
BOX_URL: idea2app/next-bootstrap-ts
BOX_NAME: ${{ github.event.repository.name }}
BOX_URL: ${{ github.repository }}

jobs:
deploy_docker_image:
Expand All @@ -24,6 +24,8 @@ jobs:

- name: Inject Environment variables
run: |
echo "BOX_NAME=${BOX_NAME@L}" >> "${GITHUB_ENV}"
echo "BOX_URL=${BOX_URL@L}" >> "${GITHUB_ENV}"
cat > .env.local <<EOF
${{ secrets.ENV_FILE }}
EOF
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/init-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
steps:
- uses: actions/checkout@v4

Expand All @@ -20,7 +21,6 @@ jobs:
sh .github/workflows/replace-repository-name.sh \
${{ env.TEMPLATE_OWNER }} ${{ env.TEMPLATE_NAME }} \
${{ github.repository_owner }} ${{ github.event.repository.name }}
rm -f .github/workflows/init-template.yml
- uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down

1 comment on commit e64a6ba

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for next-bootstrap-ts ready!

✅ Preview
https://next-bootstrap-4a4qynxu9-stevending1sts-projects.vercel.app

Built with commit e64a6ba.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.