GH project variable assignment

This commit is contained in:
Gonzalo Acuña 2025-11-13 11:24:48 -03:00
parent 11c0ae9161
commit 11b066ef25
No known key found for this signature in database
GPG Key ID: 646BA79A313A2270

View File

@ -225,10 +225,15 @@ jobs:
--label "request/operational") --label "request/operational")
## Adding the issue to the team project ## Adding the issue to the team project
gh project item-add \ PROJECT_ITEM_ID=$(gh project item-add \
${{ secrets.NOTIFICATION_PROJECT_ID }} \ ${{ secrets.NOTIFICATION_PROJECT_NUMBER }} \
--url $ISSUE_URL \ --url $ISSUE_URL \
--owner wazuh --owner wazuh \
--format json \
| jq -r '.id')
## Setting Objective
gh project item-edit --id $PROJECT_ITEM_ID --project-id ${{ secrets.NOTIFICATION_PROJECT_ID }} --field-id ${{ secrets.NOTIFICATION_PROJECT_OBJECTIVE_ID }} --text "Security scans"
env: env:
GH_TOKEN: ${{ secrets.NOTIFICATION_GH_ARTIFACT_TOKEN }} GH_TOKEN: ${{ secrets.NOTIFICATION_GH_ARTIFACT_TOKEN }}