mirror of
https://github.com/github/codeql.git
synced 2026-01-10 21:20:22 +01:00
Add test for self-referencing jobs
This commit is contained in:
20
ql/test/query-tests/Security/CWE-094/.github/workflows/self_needs.yml
vendored
Normal file
20
ql/test/query-tests/Security/CWE-094/.github/workflows/self_needs.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
test1:
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
job_output: ${{ steps.source.outputs.value }}
|
||||
steps:
|
||||
- id: source
|
||||
uses: mad9000/actions-find-and-replace-string@3
|
||||
with:
|
||||
source: ${{ github.event['head_commit']['message'] }}
|
||||
find: 'foo'
|
||||
replace: ''
|
||||
- run: ${{ steps.source.outputs.value }}
|
||||
- run: ${{ needs.test1.outputs.job_output }}
|
||||
Reference in New Issue
Block a user