Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trust $GITHUB_WORKSPACE in third-party Workflow #753

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/go-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Trust repository
run: git config --global --add safe.directory $GITHUB_WORKSPACE
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Unit tests
run: |
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Trust repository
run: git config --global --add safe.directory $GITHUB_WORKSPACE
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Integration tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Trust repository
run: git config --global --add safe.directory $GITHUB_WORKSPACE
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Run golangci-lint
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/third-party.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
apk update
apk add bash curl findutils gh git go nodejs perl upx xz yara-x-compat
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Trust repository
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: chainguard-dev/actions/setup-gitsign@e82b4e5ae10182af72972addcb3fedf7454621c8
- name: Set up Octo-STS
uses: octo-sts/action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
Expand Down
Loading