-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #86 from github/analyze_reusable_workflows
Cross remote Reusable Workflow analysis
- Loading branch information
Showing
10 changed files
with
147 additions
and
23 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
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
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
29 changes: 29 additions & 0 deletions
29
...curity/CWE-829/.github/reusable_workflows/TestOrg/TestRepo/.github/workflows/reusable.yml
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,29 @@ | ||
name: Test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
type: string | ||
default: "**" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
test: | ||
name: Checkout | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- run: | | ||
npm install | ||
npm run lint | ||
11 changes: 11 additions & 0 deletions
11
ql/test/query-tests/Security/CWE-829/.github/workflows/reusable_caller1.yaml
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: assets-test | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
check-execution-context: | ||
uses: TestOrg/TestRepo/.github/workflows/reusable.yml@main | ||
with: | ||
branch: ${{ github.event.pull_request.head.ref }} | ||
|
11 changes: 11 additions & 0 deletions
11
ql/test/query-tests/Security/CWE-829/.github/workflows/reusable_caller2.yaml
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: assets-test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check-execution-context: | ||
uses: TestOrg/TestRepo/.github/workflows/reusable.yml@main | ||
with: | ||
branch: ${{ github.event.pull_request.head.ref }} | ||
|
11 changes: 11 additions & 0 deletions
11
ql/test/query-tests/Security/CWE-829/.github/workflows/reusable_caller3.yaml
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: assets-test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check-execution-context: | ||
uses: ./.github/workflows/reusable_local.yml | ||
with: | ||
branch: ${{ github.event.pull_request.head.ref }} | ||
|
29 changes: 29 additions & 0 deletions
29
ql/test/query-tests/Security/CWE-829/.github/workflows/reusable_local.yml
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,29 @@ | ||
name: Test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
type: string | ||
default: "**" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
test: | ||
name: Checkout | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- run: | | ||
npm install | ||
npm run lint | ||
Oops, something went wrong.