Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Bump anchore/sbom-action from 0.14.2 to 0.14.3 #46

Bump anchore/sbom-action from 0.14.2 to 0.14.3

Bump anchore/sbom-action from 0.14.2 to 0.14.3 #46

Workflow file for this run

# shamelessly copied from https://github.com/goreleaser/goreleaser/blob/main/.github/workflows/milestone.yml
on:
pull_request_target:
types: [closed]
branches:
- main
jobs:
milestone:
runs-on: ubuntu-latest
permissions:
actions: none
checks: none
contents: read
deployments: none
issues: write
packages: none
pull-requests: write
repository-projects: none
security-events: none
statuses: none
steps:
- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6
with:
script: |
if (!context.payload.pull_request.merged) {
console.log('PR was not merged, skipping.');
return;
}
if (!!context.payload.pull_request.milestone) {
console.log('PR has existing milestone, skipping.');
return;
}
milestones = await github.rest.issues.listMilestones({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
sort: 'due_on',
direction: 'asc'
})
if (milestones.data.length === 0) {
console.log('There are no milestones, skipping.');
return;
}
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
milestone: milestones.data[0].number
});