chore: revert adding pgxpool #2987
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ["main"] | |
schedule: | |
- cron: "0 0 * * 1" | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
env: | |
CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }} | |
CHAINLOOP_WORKFLOW_NAME: "chainloop-vault-codeql" | |
CHAINLOOP_PROJECT: "chainloop" | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["go"] | |
steps: | |
- name: Install Chainloop | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/01ad13af08950b7bfbc83569bea207aeb4e1a285/docs/static/install.sh | bash -s | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Initialize Attestation | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
chainloop attestation init --workflow $CHAINLOOP_WORKFLOW_NAME --project $CHAINLOOP_PROJECT | |
- name: Set up Go | |
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | |
with: | |
go-version: "1.23.1" | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8 | |
- name: Perform CodeQL Analysis | |
id: codeqlresults | |
uses: github/codeql-action/analyze@6a28655e3dcb49cb0840ea372fd6d17733edd8a4 # v2.21.8 | |
with: | |
category: "/language:${{matrix.language}}" | |
- name: Add Attestation (Sarif results) | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
chainloop attestation add --name sarif-results --value ${{steps.codeqlresults.outputs.sarif-output}}/go.sarif | |
- name: Finish and Record Attestation | |
if: ${{ success() && github.event_name != 'pull_request' }} | |
run: | | |
chainloop attestation status --full | |
chainloop attestation push --key env://CHAINLOOP_SIGNING_KEY | |
env: | |
CHAINLOOP_SIGNING_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | |
CHAINLOOP_SIGNING_KEY: ${{ secrets.COSIGN_KEY }} | |
- name: Mark attestation as failed | |
if: ${{ failure() && github.event_name != 'pull_request' }} | |
run: | | |
chainloop attestation reset | |
- name: Mark attestation as cancelled | |
if: ${{ cancelled() && github.event_name != 'pull_request' }} | |
run: | | |
chainloop attestation reset --trigger cancellation |