Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Jun 26, 2023
1 parent 6d65ecd commit f72e5d4
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 91 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "Pull Request Changes"

on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, closed]

permissions: {}

Expand All @@ -14,4 +14,4 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "Changes detected."
- run: echo "Child workflows triggered."
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 4 additions & 9 deletions .github/workflows/sec_snyk.yml → .github/workflows/pr_snyk.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: "Snyk"

# This workflow will run after a pull request has been approved, and is
# triggered as a result of the "Pull Request Approval" workflow succeeding.
# By being executed in this manner, the workflow will have access to the
# environment variables of the origin repository, allowing builds to
# successfully run for forked pull requests without exposing secrets.

on:
workflow_run:
workflows: ["Pull Request Approval"]
workflows: ["Pull Request Changes"]
types:
- completed

Expand All @@ -23,8 +17,6 @@ jobs:
name: "Scan"
runs-on: ubuntu-latest

if: github.event.workflow_run.conclusion == 'success' && contains(github.event.issue.labels.*.name, 'Approved')

steps:
- uses: shivammathur/setup-php@v2
with:
Expand All @@ -35,6 +27,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- run: composer install --no-progress

Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/repo_pr_await_approval.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/repo_pr_label_approval.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/repo_pr_label_approval_revoke.yml

This file was deleted.

0 comments on commit f72e5d4

Please sign in to comment.