fix: Address high-severity bandit issues
This commit is contained in:
@@ -6,7 +6,7 @@ on: [push]
|
||||
jobs:
|
||||
dss-context-update:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
# Step 1: Check out the repository code
|
||||
- name: Checkout code
|
||||
@@ -43,12 +43,12 @@ jobs:
|
||||
# Check if the analysis graph file has been changed
|
||||
if ! git diff --quiet .dss/analysis_graph.json; then
|
||||
echo "Change detected in analysis_graph.json. Committing and pushing..."
|
||||
|
||||
|
||||
# Add the file, commit, and push back to the same branch.
|
||||
# The GITEA_TOKEN is a secret you must configure in your project settings.
|
||||
git add .dss/analysis_graph.json
|
||||
git commit -m "chore(dss): Update project analysis context [skip ci]"
|
||||
|
||||
|
||||
# Use the DSS_GITEA_TOKEN for authentication
|
||||
# GITEA_SERVER_URL and GITEA_REPOSITORY are default environment variables in Gitea Actions.
|
||||
git push https://dss-agent:${{ secrets.DSS_GITEA_TOKEN }}@${GITEA_SERVER_URL}/${GITEA_REPOSITORY}.git HEAD:${GITEA_REF_NAME}
|
||||
|
||||
Reference in New Issue
Block a user