Skip to content

Commit

Permalink
Included type of pull request to run workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shettland authored and saramonzon committed Apr 5, 2024
1 parent ea87a75 commit fe368e3
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/test_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,30 @@ on:
push:
branches: "**"
pull_request_target:
types:
- opened
branches: "**"

env:
GITHUB_TOKEN: ${{ secrets.TOKEN_ACTIONS }}

jobs:
security_check:
- name: Get User Permission
id: checkAccess
uses: actions-cool/check-user-permission@v2
with:
require: write
username: ${{ github.triggering_actor }}
- name: Check User Permission
if: steps.checkAccess.outputs.require-result == 'false'
run: |
echo "${{ github.triggering_actor }} does not have permissions on this repo."
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
echo "Job originally triggered by ${{ github.actor }}"
exit 1
runs-on: ubuntu-latest
steps:
- name: Get User Permission
id: checkAccess
uses: actions-cool/check-user-permission@v2
with:
require: write
username: ${{ github.triggering_actor }}
- name: Check User Permission
if: steps.checkAccess.outputs.require-result == 'false'
run: |
echo "${{ github.triggering_actor }} does not have permissions on this repo."
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
echo "Job originally triggered by ${{ github.actor }}"
exit 1
test_sftp_handle:
runs-on: ubuntu-latest
Expand Down

0 comments on commit fe368e3

Please sign in to comment.