Skip to content

Commit

Permalink
fix ii for GH token
Browse files Browse the repository at this point in the history
  • Loading branch information
auhlig committed Jun 17, 2024
1 parent 8cd66e7 commit 037691a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: cloudoperators/sync-issues-github-jira@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: cloudoperators/sync-issues-github-jira@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
Expand Down
5 changes: 4 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ inputs:
description: Jira issue type.
required: false
default: "Feature"
GITHUB_TOKEN:
description: 'GITHUB_TOKEN to be stored as a secret'
required: true
label:
description: 'Label which will trigger a Jira import.'
required: true
Expand Down Expand Up @@ -266,6 +269,6 @@ runs:
echo "Removing label ${label_to_remove} from issue ${issue_number}"
curl --silent -X DELETE \
-H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
-H 'Authorization: Bearer ${{ inputs.GITHUB_TOKEN }}' \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/labels/${label_to_remove}"

0 comments on commit 037691a

Please sign in to comment.