Skip to content

Commit

Permalink
🔧 (shedule.yml): add GitHub CLI authentication and update token usage
Browse files Browse the repository at this point in the history
Add a step to authenticate the GitHub CLI to ensure that the workflow
has the necessary permissions to execute GitHub CLI commands. Update
the GITHUB_TOKEN usage to use the secret directly, which simplifies
the workflow and ensures consistency in token management. This change
enhances the security and reliability of the workflow by ensuring
proper authentication and token usage.
  • Loading branch information
MrHinsh committed Nov 19, 2024
1 parent 18418ff commit ef66e3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/shedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
app-id: ${{ secrets.NKDAGILITY_BOT_APP_ID }}
private-key: ${{ secrets.NKDAGILITY_BOT_CLIENTSECRET }}

- name: Authenticate GitHub CLI
run: gh auth status
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Find latest semantic version tag (PowerShell)
id: find_tag
shell: pwsh
Expand All @@ -50,4 +55,4 @@ jobs:
"/repos/${{ github.repository }}/actions/workflows/main.yaml/dispatches" `
-f ref=$latestTag
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ef66e3d

Please sign in to comment.