-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: scan on pull_request instead of push (#10)
* fix: scan on pull_request instead of push * chore: standardise workflow with other rocks
- Loading branch information
Showing
8 changed files
with
106 additions
and
72 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,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a bug report to help us improve | ||
title: "" | ||
labels: ["bug"] | ||
assignees: '' | ||
--- | ||
|
||
#### Describe the bug | ||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
#### To Reproduce | ||
<!-- Steps that can be taken to reproduce the behaviour --> | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
#### Expected behavior | ||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
#### Screenshots | ||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
#### Logs | ||
<!-- If applicable, add logs to help explain your problem. --> | ||
|
||
#### Environment | ||
|
||
- ROCK version (if relevant): <!-- e.g. 1.2 --> | ||
- Juju version (output from `juju --version`): | ||
- Cloud Environment: <!-- e.g. GKE --> | ||
- Kubernetes version (output from `kubectl version --short`): | ||
|
||
#### Additional context | ||
|
||
<!-- Add any other context about the problem here. --> |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
name: "Dependabot Auto Approve and Merge" | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
auto-merge: | ||
uses: canonical/sdcore-github-workflows/.github/workflows/dependabot_pr.yaml@v0.0.1 |
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,11 @@ | ||
name: Sync Issues to JIRA | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened, closed] | ||
|
||
jobs: | ||
update: | ||
name: Update Issue | ||
uses: canonical/sdcore-github-workflows/.github/workflows/issues.yaml@v0.0.1 | ||
secrets: inherit |
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,20 @@ | ||
name: "Lint PR" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,25 @@ | ||
name: Main | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
|
||
build-rock: | ||
uses: canonical/sdcore-github-workflows/.github/workflows/build-rock.yaml@v0.0.1 | ||
|
||
scan-rock: | ||
needs: build-rock | ||
uses: canonical/sdcore-github-workflows/.github/workflows/scan-rock.yaml@v0.0.1 | ||
|
||
publish-rock: | ||
if: github.ref_name == 'main' | ||
needs: scan-rock | ||
uses: canonical/sdcore-github-workflows/.github/workflows/publish-rock.yaml@v0.0.1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.