Skip to content
Open
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
10 changes: 5 additions & 5 deletions .github/workflows/build-ddn-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
connector_matrix: ${{ steps.check-changes.outputs.connector_matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
# Fetch more history for PR events to detect changes
fetch-depth: ${{ github.event_name == 'pull_request' && 0 || 1 }}

- name: Get all connector version package changes
id: connector-version-changed-files
uses: tj-actions/changed-files@v46.0.1
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
with:
json: true
escape_json: false
Expand Down Expand Up @@ -174,12 +174,12 @@ jobs:
if: needs.detect-connector-changes.outputs.should_build == 'true'
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

- name: Setup gcloud
env:
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:

- name: Send Slack notification
if: success()
uses: 8398a7/action-slack@v3
uses: 8398a7/action-slack@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3
with:
status: success
channel: '#ddn-workspace-releases'
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ddn-workspace-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
matrix: ${{ steps.connector-matrix.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 1

- name: Get all connector version package changes
id: connector-version-changed-files
uses: tj-actions/changed-files@v46.0.1
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
with:
json: true
escape_json: false
Expand All @@ -45,7 +45,7 @@ jobs:
cat changed_files.json

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
with:
go-version: 1.21.x

Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch_depth: 1

Expand Down Expand Up @@ -490,14 +490,14 @@ jobs:
fi

- name: Upload DDN Workspace image
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ddn-workspace-image
path: ddn-workspace.tar.gz
retention-days: 1

- name: Upload connector-versions.json
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: connector-versions
path: connector-versions.json
Expand All @@ -512,7 +512,7 @@ jobs:
SECRETS_JSON: ${{ toJson(secrets) }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch_depth: 1

Expand All @@ -539,7 +539,7 @@ jobs:
fi

- name: Install bun
uses: oven-sh/setup-bun@v2
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.2.4

Expand All @@ -548,7 +548,7 @@ jobs:
run: bun install

- name: Download connector-versions.json
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: connector-versions

Expand All @@ -567,7 +567,7 @@ jobs:
fi

- name: Download DDN Workspace image
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: ddn-workspace-image

Expand Down Expand Up @@ -657,15 +657,15 @@ jobs:
echo "🎉 All DDN workspace tests completed successfully!"

- name: Run Trivy vulnerability scanner (json output)
uses: aquasecurity/trivy-action@0.35.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
with:
image-ref: "ddn-workspace:test"
format: json
output: trivy-results.json
scanners: vuln

- name: Upload Trivy scan results to PromptQL Security Agent
uses: hasura/security-agent-tools/upload-file@v1
uses: hasura/security-agent-tools/upload-file@f16c24be07f6cc89535b6fcdab29e15b1ee799b0 # v1
with:
file_path: trivy-results.json
security_agent_api_key: ${{ secrets.SECURITY_AGENT_API_KEY }}
Expand All @@ -679,7 +679,7 @@ jobs:
team=promptql

- name: Fail build on High/Critical Vulnerabilities
uses: aquasecurity/trivy-action@v0.35.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
skip-setup-trivy: true # setup was already done by the previous call to this action above
image-ref: "ddn-workspace:test"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
with:
go-version: '1.21'
cache: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch_depth: 1

- name: Get all connector version package changes
id: connector-version-changed-files
uses: tj-actions/changed-files@v46.0.1
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
with:
json: true
escape_json: false
Expand All @@ -41,7 +41,7 @@ jobs:
cat changed_files.json

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
with:
go-version: 1.21.x

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/registry-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
matrix: ${{ steps.e2e-test-matrix.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch_depth: 1

- name: Get all connector version package changes
id: connector-version-changed-files
uses: tj-actions/changed-files@v46.0.1
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
with:
json: true
escape_json: false
Expand All @@ -41,7 +41,7 @@ jobs:
cat changed_files.json

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
with:
go-version: 1.21.x

Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
run: |
echo "Running e2e tests for ${{ toJSON(matrix.task) }}"
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch_depth: 1
- name: Set matching env vars
Expand All @@ -110,7 +110,7 @@ jobs:
fi

- name: Install bun
uses: oven-sh/setup-bun@v2
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.2.4
- name: Run e2e tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/registry-updates-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch_depth: 1

- name: Get all connector version package changes
id: connector-version-changed-files
uses: tj-actions/changed-files@v46.0.1
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
with:
json: true
escape_json: false
Expand All @@ -41,7 +41,7 @@ jobs:
cat changed_files.json

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
with:
go-version: 1.21.x

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
# In the case of forked PRs, the forked repository will
# be checked out.
Expand All @@ -25,7 +25,7 @@ jobs:

- name: Get all connector version package changes
id: connector-version-changed-files
uses: tj-actions/changed-files@v46.0.1
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
with:
json: true
escape_json: false
Expand All @@ -46,7 +46,7 @@ jobs:
cat changed_files.json

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
with:
go-version: 1.21.x

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-connector-metadata-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

- name: Use Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '18'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
with:
go-version: 1.21.x

Expand Down
Loading