diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 1a43c8c7b..67609662d 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -18,7 +18,7 @@ jobs: # will not occur. - name: Dependabot metadata id: meta - uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0 + uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 # v3.0.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2929f8235..ac4a90d5a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -60,7 +60,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 + uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -88,6 +88,6 @@ jobs: exit 1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 + uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/tag-pkg.yml b/.github/workflows/tag-pkg.yml new file mode 100644 index 000000000..8eaf26610 --- /dev/null +++ b/.github/workflows/tag-pkg.yml @@ -0,0 +1,37 @@ +name: Tag pkg + +on: + workflow_dispatch: + inputs: + version: + description: "pkg version to tag (e.g. v1.2.2)" + required: true + type: string + +permissions: + contents: write + +jobs: + tag: + name: Create pkg tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + ref: develop + fetch-depth: 0 + + - name: Create and push pkg tag + run: | + VERSION="${{ inputs.version }}" + if ! [[ "$VERSION" =~ ^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then + echo "Error: version '$VERSION' does not match semver format (e.g. v1.2.2)" + exit 1 + fi + TAG="pkg/$VERSION" + if git rev-parse "$TAG" >/dev/null 2>&1; then + echo "Error: tag '$TAG' already exists" + exit 1 + fi + git tag "$TAG" + git push origin "$TAG"