-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from janwillies/bundled-provider
update to bundled provider images
- Loading branch information
Showing
31 changed files
with
2,797 additions
and
1,038 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Backport | ||
|
||
on: | ||
# NOTE(negz): This is a risky target, but we run this action only when and if | ||
# a PR is closed, then filter down to specifically merged PRs. We also don't | ||
# invoke any scripts, etc from within the repo. I believe the fact that we'll | ||
# be able to review PRs before this runs makes this fairly safe. | ||
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | ||
pull_request_target: | ||
types: [closed] | ||
# See also commands.yml for the /backport triggered variant of this workflow. | ||
|
||
jobs: | ||
# NOTE(negz): I tested many backport GitHub actions before landing on this | ||
# one. Many do not support merge commits, or do not support pull requests with | ||
# more than one commit. This one does. It also handily links backport PRs with | ||
# new PRs, and provides commentary and instructions when it can't backport. | ||
# The main gotchas with this action are that it _only_ supports merge commits, | ||
# and that PRs _must_ be labelled before they're merged to trigger a backport. | ||
open-pr: | ||
runs-on: ubuntu-20.04 | ||
if: github.event.pull_request.merged | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Open Backport PR | ||
uses: zeebe-io/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_workspace: ${{ github.workspace }} | ||
version: v0.0.4 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Comment Commands | ||
|
||
on: issue_comment | ||
|
||
jobs: | ||
points: | ||
runs-on: ubuntu-20.04 | ||
if: startsWith(github.event.comment.body, '/points') | ||
|
||
steps: | ||
- name: Extract Command | ||
id: command | ||
uses: xt0rted/slash-command-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: points | ||
reaction: "true" | ||
reaction-type: "eyes" | ||
allow-edits: "false" | ||
permission-level: write | ||
- name: Handle Command | ||
uses: actions/github-script@v4 | ||
env: | ||
POINTS: ${{ steps.command.outputs.command-arguments }} | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const points = process.env.POINTS | ||
if (isNaN(parseInt(points))) { | ||
console.log("Malformed command - expected '/points <int>'") | ||
github.reactions.createForIssueComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
comment_id: context.payload.comment.id, | ||
content: "confused" | ||
}) | ||
return | ||
} | ||
const label = "points/" + points | ||
// Delete our needs-points-label label. | ||
try { | ||
await github.issues.deleteLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: ['needs-points-label'] | ||
}) | ||
console.log("Deleted 'needs-points-label' label.") | ||
} | ||
catch(e) { | ||
console.log("Label 'needs-points-label' probably didn't exist.") | ||
} | ||
// Add our points label. | ||
github.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: [label] | ||
}) | ||
console.log("Added '" + label + "' label.") | ||
# NOTE(negz): See also backport.yml, which is the variant that triggers on PR | ||
# merge rather than on comment. | ||
backport: | ||
runs-on: ubuntu-20.04 | ||
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/backport') | ||
steps: | ||
- name: Extract Command | ||
id: command | ||
uses: xt0rted/slash-command-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
command: backport | ||
reaction: "true" | ||
reaction-type: "eyes" | ||
allow-edits: "false" | ||
permission-level: write | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Open Backport PR | ||
uses: zeebe-io/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_workspace: ${{ github.workspace }} | ||
version: v0.0.4 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
|
||
jobs: | ||
create-tag: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
|
Oops, something went wrong.