After the [recent supply chain attack](https://www.wiz.io/blog/new-github-action-supply-chain-attack-reviewdog-action-setup) in `tj-actions/changed-files` and actions based on it, it's become clear that relying on git tags to pin our dependencies is not enough (as tags can simply be replaced). Therefore we need to switch to hashes. Dependabot should continue to update these dependencies for us. Best reviewed commit-by-commit. Though if CI passes, we're *probably* fine.
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
name: Move labelled issues to correct projects
|
|
|
|
on:
|
|
issues:
|
|
types: [ labeled ]
|
|
|
|
jobs:
|
|
move_needs_info:
|
|
name: Move X-Needs-Info on the triage board
|
|
runs-on: ubuntu-latest
|
|
if: >
|
|
contains(github.event.issue.labels.*.name, 'X-Needs-Info')
|
|
steps:
|
|
- uses: actions/add-to-project@f5473ace9aeee8b97717b281e26980aa5097023f # main (v1.0.2 + 10 commits)
|
|
id: add_project
|
|
with:
|
|
project-url: "https://github.com/orgs/matrix-org/projects/67"
|
|
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
- name: Set status
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
run: |
|
|
gh api graphql -f query='
|
|
mutation(
|
|
$project: ID!
|
|
$item: ID!
|
|
$fieldid: ID!
|
|
$columnid: String!
|
|
) {
|
|
updateProjectV2ItemFieldValue(
|
|
input: {
|
|
projectId: $project
|
|
itemId: $item
|
|
fieldId: $fieldid
|
|
value: {
|
|
singleSelectOptionId: $columnid
|
|
}
|
|
}
|
|
) {
|
|
projectV2Item {
|
|
id
|
|
}
|
|
}
|
|
}' -f project="PVT_kwDOAIB0Bs4AFDdZ" -f item=${{ steps.add_project.outputs.itemId }} -f fieldid="PVTSSF_lADOAIB0Bs4AFDdZzgC6ZA4" -f columnid=ba22e43c --silent
|