build(deps): bump the go-dependencies group across 1 directory with 4 updates #3690
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Process Pull Request" | |
# NOTE: This workflow is privileged, and shouldn't be used to checkout the repo or run any of the PR code | |
# See more in: https://securitylab.github.com/research/github-actions-preventing-pwn-requests | |
on: | |
- pull_request_target | |
jobs: | |
label: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/labeler@v4 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
add-milestone: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add milestone | |
uses: actions/github-script@v7 | |
id: assets | |
with: | |
script: | | |
var milestone = await github.rest.issues.listMilestones({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
state: 'open', | |
sort: 'due_on', | |
direction: 'asc' | |
}) | |
.then(result => result.data[0]) | |
.catch(err => {throw "ERROR: " + err.message}); | |
if (milestone) { | |
await github.rest.issues.update({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.number, | |
milestone: milestone.number, | |
}); | |
core.setOutput('milestone', milestone.number); | |
} else { | |
console.log(`No milestone found. Please create one first.`); | |
} |