Comments (10)
That's odd. I believe that error indicates that one of the commit ids is invalid. Can you verify that those 2 commits exist in the repo?
2be45770d5c3e76fcd5303d51dea78879d533382
and
29d299fa6a0d799d8be798713f4cea7d074d2772
from appscan-codesweep-action.
Yes, both commits ids exist.
One is on master branch, the other is on a feature branch.
The following also returned without errors.
git diff 2be45770d5c3e76fcd5303d51dea78879d533382...29d299fa6a0d799d8be798713f4cea7d074d2772
from appscan-codesweep-action.
Can you show the relevant section of your workflow file?
from appscan-codesweep-action.
Edited issue description to include an excerpt from the workflow.
I added the trigger for pull_request
. If my assumption this should work for pull requests is incorrect, please let me know.
I'm using a self-hosted runner, hence the runs-on: ...
from appscan-codesweep-action.
Thanks for the extra info. Can you try using actions/checkout@v1 instead? I believe there was a problem with v2 when running the diff.
from appscan-codesweep-action.
That fixed it, thanks.
from appscan-codesweep-action.
Great, thanks. I'll look into why checkout@v2 has this issue.
from appscan-codesweep-action.
It looks like checkout@v2 only checks out a single commit by default.
It can be fixed by adding:
with:
fetch-depth: 0
from appscan-codesweep-action.
Thanks for the info. I'll add that to the doc and close out this issue.
from appscan-codesweep-action.
ReadMe updated, closing.
from appscan-codesweep-action.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appscan-codesweep-action.