File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy application
22
33on :
4- pull_request :
4+ pull_request_target :
55 push :
66 branches :
77 - ' master'
1717 - uses : actions/checkout@v3
1818 with :
1919 fetch-depth : 0
20+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
2021 # Declares the repository safe and not under dubious ownership.
2122 - name : Add repository to git safe directories
2223 run : git config --global --add safe.directory $GITHUB_WORKSPACE
5253 - uses : actions/checkout@v3
5354 with :
5455 fetch-depth : 0
56+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
5557 - name : download build artifact
5658 uses : actions/download-artifact@v4
5759 with :
Original file line number Diff line number Diff line change 11name : Run linting and suggest changes
22
33on :
4- pull_request :
4+ pull_request_target :
55
66permissions :
77 contents : read
1515 python-version : ['3.12']
1616
1717 steps :
18- - uses : actions/checkout@v3
19- - uses : actions/setup-python@v4
18+ - uses : actions/checkout@v4
19+ with :
20+ ref : ${{ github.event.pull_request.head.sha }}
21+ - uses : actions/setup-python@v5
2022 with :
2123 python-version : ${{ matrix.python-version }}
2224 - name : Install dependencies
You can’t perform that action at this time.
0 commit comments